Debian Codegraph @

gcc/testsuite/g++.dg/ext/flexary23.C

raw
1 // PR c++/79535 - ICE with NSDMI and array
2 // { dg-do compile { target c++14 } }
3 // { dg-options -Wno-pedantic }
4
5 struct A
6 {
7 int b = 1;
8 int c = 2;
9 int x[] = { c, 3 }; // { dg-error "initializer for flexible array member" }
10 };
11 A a = { 4, 5 };