This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/46889] Missing diagnosis on duplicate struct member with anonymous union


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46889

--- Comment #2 from Joseph S. Myers <jsm28 at gcc dot gnu.org> 2010-12-30 18:24:07 UTC ---
Author: jsm28
Date: Thu Dec 30 18:24:03 2010
New Revision: 168348

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168348
Log:
    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.

Added:
    trunk/gcc/testsuite/gcc.dg/anon-struct-15.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]