re PR c++/57891 (No diagnostic of narrowing conversion in non-type template argument)
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-47969.C
blob201ee17b41b68abe87fe7c50308514d49fd3dbe7
1 // PR c++/47969
2 // { dg-do compile { target c++11 } }
4 struct A
6   // constexpr operator int () { return 1; }
7 };
9 constexpr A a = A();
11 int ar[a]; // { dg-error "could not convert|has non-integral type" }