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