1 // PR c++/47969
2 // { dg-do compile { target c++11 } }
3 
4 struct A
5 {
6   // constexpr operator int () { return 1; }
7 };
8 
9 constexpr A a = A();
10 
11 int ar[a]; // { dg-error "could not convert" }
12 // { dg-error "8:size of array .ar. has non-integral" "" { target c++11 } .-1 }
13