This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12102] New: ICE with "struct C {} C;" and inheritance
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Aug 2003 01:38:22 -0000
- Subject: [Bug c++/12102] New: ICE with "struct C {} C;" and inheritance
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12102
Summary: ICE with "struct C {} C;" and inheritance
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: ice-on-valid-code, monitored
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
The following valid code snippet crashes every gcc release since gcc 2.95.x
as well as mainline:
==============================
struct A
{
struct C {} C;
};
struct B : A
{
struct C {} C;
};
==============================
With mainline for example I get:
bug.cc:9: internal compiler error: in pop_binding, at cp/decl.c:1138
Please submit a full bug report, [etc.]
The bug looks similar to PR 9777, but isn't quite the same.