1 2 3 4 5
// PR c++/47635 // { dg-do compile { target c++11 } } enum A { }; void A::f() { } // { dg-error "not a class" }