re PR c/6660 (Typedeffed unnamed structs/unions do not compile with gcc-3.1)
authorJakub Jelinek <jakub@redhat.com>
Mon, 10 Jun 2002 21:52:43 +0000 (23:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 10 Jun 2002 21:52:43 +0000 (23:52 +0200)
commit85d490584b173dd86e67af37a277a6b5fe823422
treee96c6ba2da0a81abca5e5d61581b7a0628b3c73a
parent50f30e6b07fbc68fefb6ecf1e585f8087c21715d
re PR c/6660 (Typedeffed unnamed structs/unions do not compile with gcc-3.1)

PR c/6660
* c-decl.c (grokfield): Allow user defined types if they declare
structs or unions for unnamed fields.

* gcc.dg/20020527-1.c: New test.

From-SVN: r54466
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20020527-1.c [new file with mode: 0644]