(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
enum7.C
// PR c++/37816
// { dg-do compile { target c++11 } }

class A
{
  enum class Color { Red, Orange, Yellow, Green, Blue, Violet };
  enum class Alert { Green, Yellow, Red };
  static const Color x = Red;	// { dg-error "" }
  static const Color y = Color::Red;
  static const Alert z = Alert::Red;
};