1 2 3 4 5 6 7
// { dg-do assemble } class A { enum B { ONE, TWO, THREE }; // { dg-error "" } private }; class A::B; // { dg-error "" } A::B is not a class type, context