PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / alias-decl-13.C
blob368e5af557e31c6a0e7d0c9ad8fbfcb5cbe17d0d
1 // Origin PR c++/51191
2 // { dg-do compile { target c++11 } }
4 template< class T >
5 class ClassTemplate {};
7 template< class T >
8 struct Metafunction {
9   typedef T type;
12 template< class T >
13 using TemplateAlias = ClassTemplate< typename Metafunction<T>::type >;
15 using Alias = TemplateAlias<int>;
17 template< class T >
18 void f( TemplateAlias<T> );
20 int main()
22   Alias x;
23   f( x ); // { dg-error "no matching function for call to|f" }