This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51588] New: [4.4/4.5/4.6/4.7 Regression] ICE
- 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:54:48 +0000
- Subject: [Bug c++/51588] New: [4.4/4.5/4.6/4.7 Regression] ICE
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51588
Bug #: 51588
Summary: [4.4/4.5/4.6/4.7 Regression] ICE
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 since GCC 4.4.0:
======================
enum A {};
struct B : A
{
int i;
};
int A::* p = &B::i;
======================
bug.cc:4:1: error: expected class-name before '{' token
bug.cc:8:18: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have enumeral_type in lookup_base, at
cp/search.c:212
Please submit a full bug report, [etc.]