c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / nsdmi-template19.C
blobf3e2cb87fd67f9caae663aa4141172963803c9b8
1 // PR c++/93676 - value-init crash in template.
2 // { dg-do compile { target c++11 } }
4 struct P {
5   int x = 0;
6 };
8 template<class T>
9 struct S {
10   S() { new P[2][2]; }
13 S<int> s;