The following testcase triggers an ICE since at least GCC 2.95.3: ============================= void foo() {} void foo(void[]); =============================
bug.c:2: error: declaration of 'type name' as array of voids bug.c:2: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in validate_proto_after_old_defn, at c-decl.c:1087 Please submit a full bug report, [etc.] Will post a patch soon. -- Summary: ICE with invalid declaration after definition 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=28502