From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 552 invoked by alias); 3 Dec 2004 13:54:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 528 invoked by uid 48); 3 Dec 2004 13:54:14 -0000 Date: Fri, 03 Dec 2004 13:54:00 -0000 From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20041203135412.18809.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/18809] New: ICE after a couple of errors with a simple invalid C code X-Bugzilla-Reason: CC X-SW-Source: 2004-12/txt/msg00506.txt.bz2 List-Id: 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 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