From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8005 invoked by alias); 22 May 2006 13:15:06 -0000 Received: (qmail 7649 invoked by uid 48); 22 May 2006 13:14:56 -0000 Date: Mon, 22 May 2006 13:15:00 -0000 Subject: [Bug c/27719] New: ICE on invalid function definition X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt at gcc dot gnu dot org" 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 X-SW-Source: 2006-05/txt/msg02150.txt.bz2 List-Id: The following invalid code snippet triggers an ICE in the C frontend since at least GCC 2.95.3: ================== void foo()[] {} ================== bug.c:1: error: declaration of 'foo' as array of voids bug.c:1: internal compiler error: tree check: expected function_decl, have var_decl in start_function, at c-decl.c:5933 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=27719