[Bug c++/12102] New: ICE with "struct C {} C;" and inheritance
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Aug 29 01:38:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list