blob: b3015256386abc71f4b61818177ed5ffa0bc08eb [file] [log] [blame]
// PR c++/96380
// { dg-do compile { target c++11 } }
extern const int a, b;
enum struct c;
template <class>
enum struct c : union enum struct c { e = b, f = a }; // { dg-error "types may not be defined|expected|elaborated-type-specifier" }
enum class c {};