aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/typedef12.C
blob: 30605044f6f2469e639ce6a8a19ca0b3210913a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin: Jason Merrill <jason@redhat.com>, PR c++/26693
// { dg-do compile }

class A
{
     protected:
           typedef int mytype;
};

template <class T> class B;

class C: public A
{
      template <class T> friend class B;
};

template <class T> class B
{
      C::mytype mem;
};

B<int> b;