aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/alias-decl-13.C
blob: 368e5af557e31c6a0e7d0c9ad8fbfcb5cbe17d0d (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
// Origin PR c++/51191
// { dg-do compile { target c++11 } }

template< class T >
class ClassTemplate {};

template< class T >
struct Metafunction {
  typedef T type;
};

template< class T >
using TemplateAlias = ClassTemplate< typename Metafunction<T>::type >;

using Alias = TemplateAlias<int>;

template< class T >
void f( TemplateAlias<T> );

int main()
{
  Alias x;
  f( x ); // { dg-error "no matching function for call to|f" }
}