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++/51587] [4.7 Regression] ICE with struct vs. enum clash


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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-12-17 19:26:51 UTC ---
Author: jason
Date: Sat Dec 17 19:26:46 2011
New Revision: 182441

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182441
Log:
    PR c++/51587
    * decl.c (start_enum): Avoid using ENUM_UNDERLYING_TYPE on a
    non-enum.

Added:
    trunk/gcc/testsuite/g++.dg/parse/enum6.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/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]