1 // PR c++/48935 2 // { dg-do compile { target c++11 } } 3 4 enum class ENUM { a }; 5 func()6 ENUM::Type func() { return ENUM::a; } // { dg-error "does not name a type" } 7