1 // { dg-do compile { target c++11 } }
3 enum class E { e = 10 };
7 int arr[E::e]; // { dg-error "could not convert" }
8 // { dg-error "14:size of array .arr. has non-integral" "" { target c++11 } .-1 }
9 int arr2[E2::e2]; // OK
10 int i: E::e; // { dg-error "could not convert|non-integral type" }