1 // PR c++/96380
2 // { dg-do compile { target c++11 } }
3 
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" }
8 enum class c {};
9