c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-array27.C
blob1234caef31d1c861b2f5f9ba052edc16cf05f73e
1 // PR c++/96282
2 // { dg-do compile { target c++11 } }
4 struct e { bool v = true; e *p = this; };
6 template<int N>
7 struct b { e m[N][N]; };
9 template<int N>
10 struct t : b<N> { constexpr t() : b<N>() {} };
12 constexpr t<1> h1;
13 constexpr t<42> h2;