* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / forw_enum13.C
blobb8027f0c28d48dd46aa4081196500c9c822b8273
1 // PR c++/70513
2 // { dg-do compile { target c++11 } }
4 template <typename T>
5 class D1
7   enum A : int;
8   enum D1::A : int { foo } c; // { dg-error "extra qualification not allowed" }
9 };
11 template <typename T>
12 class D2
14   enum A : int;
15   enum D2<T>::A : int { foo } c; // { dg-error "extra qualification not allowed" }
18 template <typename T>
19 class D3
21   enum D3::A { foo } c; // { dg-error "extra qualification not allowed" }
24 template <typename T>
25 class D4
27   enum D4<T>::A { foo } c; // { dg-error "extra qualification not allowed" }
30 template <typename T>
31 class D5
33   class D6
34   {
35     enum D6::A { foo } c; // { dg-error "extra qualification not allowed" }
36   };
39 template <typename T>
40 class D7
42   class D8
43   {
44     enum A : int;
45     enum D8::A : int { foo } c; // { dg-error "extra qualification not allowed" }
46   };