From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21673 invoked by alias); 2 May 2006 09:08:50 -0000 Received: (qmail 21654 invoked by uid 48); 2 May 2006 09:08:47 -0000 Date: Tue, 02 May 2006 09:08:00 -0000 Subject: [Bug fortran/27378] New: ICE on unexpected ELSE statement 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/msg00113.txt.bz2 List-Id: The following invalid testcase causes an ICE when compiled with -Wall: =============== else =============== The error message is: In file bug.f90:1 else 1 Error: Unexpected ELSE statement at (1) bug.f90:0: internal compiler error: Segmentation fault Without -Wall I get: In file bug.f90:1 else 1 Error: Unexpected ELSE statement at (1) Error: Unexpected end of file in 'bug.f90' This happens since GCC 4.0.1. -- Summary: ICE on unexpected ELSE statement Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored Severity: normal Priority: P3 Component: fortran 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=27378