Debian Codegraph @

gcc/testsuite/g++.dg/template/ctor8.C

raw
1 // PR c++/28711
2 // { dg-do compile }
3 // { dg-options "" }
4
5 template<int> struct A
6 {
7 int x[1][1];
8 A() : x((int[1][]){{0}}) {} // { dg-error "except the first" }
9 };
10
11 A<0> a;