re PR c/46889 (Missing diagnosis on duplicate struct member with anonymous union)
authorJoseph Myers <joseph@codesourcery.com>
Thu, 30 Dec 2010 18:24:03 +0000 (18:24 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 30 Dec 2010 18:24:03 +0000 (18:24 +0000)
commitb3c1008c101ec8a23d60a01c8038a644b0657a60
tree898830c9b66436ffd54795f64963d3607f64c897
parent08b2ba302b753810b42419f77415a77e16262901
re PR c/46889 (Missing diagnosis on duplicate struct member with anonymous union)

PR c/46889
* c-decl.c (detect_field_duplicates): Ensure hash is used for
finding duplicates when first field is anonymous.

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

From-SVN: r168348
gcc/ChangeLog
gcc/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/anon-struct-15.c [new file with mode: 0644]