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