[Bug c/27420] New: ICE on invalid function definition
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu May 4 14:57:00 GMT 2006
The C frontend ICEs (since at least GCC 2.95.3) on the following
invalid code snippet:
==============================
void foo();
void foo(struct A a) {}
==============================
bug1.c:2: warning: 'struct A' declared inside parameter list
bug1.c:2: warning: its scope is only this definition or declaration, which is
probably not what you want
bug1.c:2: error: parameter 1 ('a') has incomplete type
bug1.c:2: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in self_promoting_args_p, at c-common.c:3556
Please submit a full bug report, [etc.]
--
Summary: ICE on invalid function 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=27420
More information about the Gcc-bugs
mailing list