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

            Bug ID: 61109
           Summary: ICE [4.10 Regression] in fortran/trans-array.c on
                    dimension 0 arrays
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juergen.reuter at desy dot de

Setting a dimension zero array to a constant value triggers an ICE:

Failing code:

module foo
logical, dimension(0) :: is_allowed = .true.
end module foo

triggers

f951: internal compiler error: in gfc_conv_array_initializer, at
fortran/trans-array.c:5408

f951: internal compiler error: Abort trap: 6
gfortran: internal compiler error: Abort trap: 6 (program f951)

It worked for 4.7.1/2/3, 4.8.0/1/2, 4.9.0.

Tested for MAC OS X and Linux x86_64.

Reply via email to