blob: 7a9086cb7c1063d36dbf2f5ce43f25873e547235 [file] [log] [blame]
// { dg-do compile { target c++11 } }
struct A
{
constexpr A(int) { }
constexpr operator int() { return 1; };
};
template <class T>
struct B
{
static constexpr A a = A(1);
int ar[a];
};
B<int> b;