Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / enum_base5.C
blobc01e857e612e224ddb041a0d69ce6be6a9d313b3
1 // PR c++/96380
2 // { dg-do compile { target c++11 } }
4 extern const int a, b;
5 enum struct c;
6 template <class>
7 enum struct c : union enum struct c { e = b, f = a }; // { dg-error "types may not be defined|expected|elaborated-type-specifier" }