* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / alias-decl-16.C
blobd934a93bd473e4139d9ad166f15e174c8c79e4d7
1 // Origin PR c++/51143
2 // { dg-do compile { target c++11 } }
4 using A0 = struct B0 { void f() {} };
6 template<int N>
7 using A1 =
8     struct B1 { // { dg-error "types may not be defined in alias template" }
9         static auto constexpr value = N;
10     };
12 A1<0> a1;
14 template<class T>
15 using A2 =
16     struct B2 {  // { dg-error "types may not be defined in alias template" }
17         void f(T){}
18     };
20 A2<bool> a2;
22 template<class T>
23 using A3 =
24     enum B3 {b = 0;}; //{ dg-error "types may not be defined in alias template" }
26 A3<int> a3; // { dg-error "'A3' does not name a type" }
28 int main() { }