Since GCC 4.0.0 the C++ frontend ICEs on code like void foo() { for
But unlike PR23439 the C++ parser also ICEs on void foo() { for (;;) or void foo() { if () or void foo() { while () -- Summary: [4.0/4.1 regression] "void f(){for" crashes the C++ frontend Product: gcc Version: 4.1.0 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: belyshev at depni dot sinp dot msu dot ru,gcc-bugs at gcc dot gnu dot org BugsThisDependsOn: 23439 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23440