]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ChangeLog
c-decl.c (grokfield): Don't allow typedefs for structures or unions with no tag by...
authorJoseph Myers <joseph@codesourcery.com>
Fri, 18 Mar 2011 21:16:31 +0000 (21:16 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 18 Mar 2011 21:16:31 +0000 (21:16 +0000)
commitff8e21599213bbea6ccacecf2522ad19836c8fd1
tree080d7b0817fada736ec3b580f8573b09cf4c52d1
parent16cc44407fe40e3411e206eeec60a14d20769ade
c-decl.c (grokfield): Don't allow typedefs for structures or unions with no tag by default.

* c-decl.c (grokfield): Don't allow typedefs for structures or
unions with no tag by default.
* doc/extend.texi (Unnamed Fields): Update.

testsuite:
* gcc.dg/c1x-anon-struct-1.c: Don't test use of typedefs.
* gcc.dg/c1x-anon-struct-3.c: New test.
* gcc.dg/anon-struct-11.c: Update.

From-SVN: r171170
gcc/ChangeLog
gcc/c-decl.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/anon-struct-11.c
gcc/testsuite/gcc.dg/c1x-anon-struct-1.c
gcc/testsuite/gcc.dg/c1x-anon-struct-3.c [new file with mode: 0644]