integer(1) :: i(1:-1)
i = 5
end

gives:
hh1.f90: In function 'MAIN__':
hh1.f90:1: error: size of variable 'i' is too large

Expected:
No error as i is an array with no elements


-- 
           Summary: zero-sized array wrongly rejected: integer :: i(1:-1)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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

Reply via email to