This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28291] New: [4.1/4.2 regression] ICE on invalid designated initializer
- 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: 6 Jul 2006 20:53:10 -0000
- Subject: [Bug c++/28291] New: [4.1/4.2 regression] ICE on invalid designated initializer
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 4.1.0:
======================
struct A
{
static int i;
int j;
};
A a = { i:0 };
======================
bug.cc:7: error: 'A' has no non-static data member named 'i'
bug.cc:7: internal compiler error: in process_init_constructor_record, at
cp/typeck2.c:895
Please submit a full bug report, [etc.]
--
Summary: [4.1/4.2 regression] ICE on invalid designated
initializer
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28291