1 2 3 4 5 6
// PR c++/58980 template<typename> struct A { enum A::B::C {}; // { dg-error "has not been declared" } };