This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51587] New: [4.7 Regression] ICE with struct vs. enum clash
- From: "reichelt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Dec 2011 20:38:51 +0000
- Subject: [Bug c++/51587] New: [4.7 Regression] ICE with struct vs. enum clash
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51587
Bug #: 51587
Summary: [4.7 Regression] ICE with struct vs. enum clash
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
The following invalid code snippet triggers an ICE on trunk:
==============
namespace N
{
struct X;
}
enum N::X {};
==============
bug.cc:6:9: internal compiler error: tree check: expected enumeral_type, have
record_type in start_enum, at cp/decl.c:12027
Please submit a full bug report, [etc.]