summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/alias-decl-60.C
blob: 6bf9b7b16669fb0e8556f81a7d43d7c0784cb192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/72764
// { dg-do compile { target c++11 } }

template < typename > struct A;
template < typename > struct B {};

template < typename T >
using C = typename A < T >::template D < T >;

template < typename T > struct A
{ 
  // should be: template < typename > struct D : B < C < T > > {};
  struct D : B < C < T > > {};	// { dg-error "not a class template" }
};

A < int >::D a;			// { dg-message "required" }