label_2.f90, from the testsuite, encounters an ICE when compiled with -Wall:

$ cat src/label_2.f90 
! { dg-do compile }
! PR fortran/24640.  We needed to check that whitespace follows
! a statement label in free form.
!
program pr24640

10: a=10   ! { dg-error "character in statement" }

end program

$ gfortran -c src/label_2.f90 -Wall
 In file src/label_2.f90:7

10: a=10   ! { dg-error "character in statement" }
  1
Error: Non-numeric character in statement label at (1)
src/label_2.f90:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: Testsuite ICE with -Wall
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27553

Reply via email to