The following invalid code snippet causes an ICE since GCC 4.0.0:

==============================
      subroutine FOO

      character*20 X  0
      data X /'A'/    0

      end subroutine FOO
==============================

 In file bug.f:4

      data X /'A'/    0                                                 
                 1
Error: Syntax error in DATA statement at (1)
 In file bug.f:6

      end subroutine FOO                                                
                                                                       1
 Internal Error at (1):
 gfc_get_default_type(): Bad symbol


-- 
           Summary: ICE on garbage in DATA 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=27954

Reply via email to