]> gcc.gnu.org Git - gcc.git/commit
re PR c/4784 (Anonymous structs issues)
authorJoseph Myers <joseph@codesourcery.com>
Sun, 9 May 2010 16:19:28 +0000 (17:19 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sun, 9 May 2010 16:19:28 +0000 (17:19 +0100)
commit492fc0eec511c06f6f159b7d88bc7a8212ce5c23
tree40f3750c5c0d3e75e4ae38fc558b95bd1d59a14b
parent44f276c65fc93a5ced092eca774c772cb10acd66
re PR c/4784 (Anonymous structs issues)

PR c/4784
* c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
structures and unions recursively.
(detect_field_duplicates): Move duplicate detection with a hash to
detect_field_duplicates_hash.  Always use a hash if anonymous
structures or unions are present.
* doc/extend.texi (Unnamed Fields): Document that duplicate fields
give errors.

testsuite:
* gcc.dg/anon-struct-9.c: New test.

From-SVN: r159204
gcc/ChangeLog
gcc/c-decl.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/anon-struct-9.c [new file with mode: 0644]
This page took 0.064101 seconds and 5 git commands to generate.