blob: 456b0daedd189f57c600c1e875882fd7c6300305 [file] [log] [blame]
// { dg-do compile { target c++11 } }
enum class E { e = 10 };
enum E2 { e2 = 10 };
struct C {
int arr[E::e]; // { dg-error "could not convert|non-integral type" }
int arr2[E2::e2]; // OK
int i: E::e; // { dg-error "could not convert|non-integral type" }
int i2: E2::e2; // OK
};