[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / ext / pr71290.C
blobe782eb1a486130f2f64a694e696e1683793a8b7b
1 // PR c++/71290 - [6/7 Regression] Flexible array member is not diagnosed
2 // with -pedantic
4 // { dg-do compile }s
5 // { dg-options "-Wall -Wpedantic" }
7 struct A
9   int i;
10   int arr[];   // { dg-warning "forbids flexible array member .arr." }
13 template <class T>
14 struct B {
15   T n;
16   T a[];       // { dg-warning "forbids flexible array member .a." }