This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18389] New: [3.4/4.0 regression] ICE on struct declaration in for statement
- 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: 9 Nov 2004 02:41:46 -0000
- Subject: [Bug c++/18389] New: [3.4/4.0 regression] ICE on struct declaration in for statement
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code snippet causes an ICE in 3.3.x, 3.4.3,
and mainline (but not in 3.4.[012]):
=========================
void foo()
{
for (;struct A{};);
}
=========================
--
Summary: [3.4/4.0 regression] ICE on struct declaration in for
statement
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, 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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18389