blob: 851660b90a75e8847a86d15d929cd9b7d734a8f8 [file] [log] [blame]
// { dg-do compile { target c++11 } }
struct Shape {
enum class Type
{ Circle, Square };
};
void Foo (Shape &shape)
{
+shape.Type::NOPE; // { dg-error "is not a member of" }
}