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

Reply via email to