repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
pr71290.C
blob
e782eb1a486130f2f64a694e696e1683793a8b7b
1
// PR c++/71290 - [6/7 Regression] Flexible array member is not diagnosed
2
// with -pedantic
3
4
// { dg-do compile }s
5
// { dg-options "-Wall -Wpedantic" }
6
7
struct A
8
{
9
int i;
10
int arr[]; // { dg-warning "forbids flexible array member .arr." }
11
};
12
13
template <class T>
14
struct B {
15
T n;
16
T a[]; // { dg-warning "forbids flexible array member .a." }
17
};