2 // { dg-do compile { target c++11 } }
6 constexpr operator int() const { return 0; }
9 int a[] = { [A()] = 0 };
15 constexpr operator E() const { return E::e0; }
18 int b[] = { [B()] = 0 };
20 enum class SE { se0 };
24 constexpr operator SE() const { return SE::se0; }
27 int c[] = { [C()] = 0 }; // { dg-error "integral constant-expression" }