[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / flexary23.C
blob099e7fd2938e27038261d81c4e7049ea8dd5748c
1 // PR c++/79535 - ICE with NSDMI and array
2 // { dg-do compile { target c++14 } }
3 // { dg-options -Wno-pedantic }
5 struct A
7   int b = 1;
8   int c = 2;
9   int x[] = { c, 3 }; // { dg-error "initializer for flexible array member" }
11 A a = { 4, 5 };