OSDN Git Service

PR c/17189
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Oct 2004 00:47:20 +0000 (00:47 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Oct 2004 00:47:20 +0000 (00:47 +0000)
commit95ad7a71ac7e9934ccbdd32053a40d642d4541b2
treef192e170635c25ee19d58894e6355d869f6e0d82
parent27a41ca596642af587120516a3fea15bd0f17880
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88834 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/c-parse.in
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/anon-struct-5.c [new file with mode: 0644]