(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
pr65954.C
// { 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" }
}