The following invalid code snippet triggers an ICE in the C frontend since at least GCC 2.95.3:
============================= void foo(struct A a) {} void foo() {} ============================= bug.c:1: warning: 'struct A' declared inside parameter list bug.c:1: warning: its scope is only this definition or declaration, which is probably not what you want bug.c:1: error: parameter 1 ('a') has incomplete type bug.c:2: error: redefinition of 'foo' bug.c:1: error: previous definition of 'foo' was here bug.c: In function 'foo': bug.c:2: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in store_parm_decls_oldstyle, at c-decl.c:6375 Please submit a full bug report, [etc.] -- Summary: ICE with invalid function definitions 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=27953