This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18809] New: ICE after a couple of errors with a simple invalid C code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Dec 2004 13:54:14 -0000
- Subject: [Bug c/18809] New: ICE after a couple of errors with a simple invalid C code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I tried to compile rs6000.c outside of the gcc objdir just for checking on a flag but I found we produced
an ICE after some errors.
Reduced to:
static int b (enum a mode) {}
static void c (void) { b (2); }
new.c:1: warning: 'enum a' declared inside parameter list
new.c:1: warning: its scope is only this definition or declaration, which is probably not what you want
new.c:1: error: parameter 1 ('mode') has incomplete type
new.c: In function 'c':
new.c:2: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in
convert_arguments, at c-typeck.c:2170
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
This looks not to be a regression but I could be wrong.
--
Summary: ICE after a couple of errors with a simple invalid C
code
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery
Severity: minor
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18809