* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / alias-decl-5.C
blob559fc51c5cf2742d5ce7f96f8fe0912fe5fc0dba
1 // { dg-do compile { target c++11 } }
3 // alias template of a partial specialization
5 template<class T, class U, class W> struct S0 {};
6 template<class T, class U> struct S0<T, U, char> {};
7 template<class T> using AS0 = S0<T, int, char>;
8 void foo(S0<bool, int, char>);
10 AS0<bool> a; // OK
12 void
13 f()
15     foo(a); //OK
18 // alias template of an explicit specialization of a member template
20 template<class T>
21 struct S1 {
22     template<class U>
23     struct M {};
25 template<class T> using AM = S1<int>::M<T>;
26 void bar(S1<int>::M<bool>);
28 AM<bool> b; //OK.
30 void
31 g()
33     bar(b); //OK