aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/typename19.C
blob: 735deb2775242d659b2ffbd78afb7ac23d11c348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// PR c++/56395

struct A
{
  template <class T> struct B { };
};

template <class T> struct D { };

template <class T, class U> struct C
{
  typedef T _Type;
  typedef typename T::template B<_Type> _BType;
  D<_BType> d;
};

template <class T> struct C<T,T>
{
  typedef T _Type;
  typedef typename T::template B<_Type> _BType;
  D<_BType> d;
};

C<A,A> c;