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++/51228] [4.5/4.6/4.7 Regression] ICE with transparent union


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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-12-19 20:10:32 UTC ---
Author: jason
Date: Mon Dec 19 20:10:25 2011
New Revision: 182494

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182494
Log:
    PR c++/51228
    * c-common.c (handle_transparent_union_attribute): Check the first
    field if the type is complete.

Added:
    trunk/gcc/testsuite/c-c++-common/transparent-union-1.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-common.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]