re PR c/17189 (bogus warning for struct Foo { int; };)
PR c/17189 * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed fields a pedwarn. Pedwarn here for unnamed structs/unions if pedantic. * c-parse.in (component_decl): Don't pedwarn here for unnamed fields. testsuite: * gcc.dg/anon-struct-5.c: New test. From-SVN: r88834
Showing
gcc/testsuite/gcc.dg/anon-struct-5.c
0 → 100644
Please
register
or
sign in
to comment