https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70071

            Bug ID: 70071
           Summary: ICE on wrong usage of a subscript triplet
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fort...@t-online.de
  Target Milestone: ---

A wrong usage of a subscript triplet :


$ cat z1.f90
program p
   integer, allocatable :: z(:)[:,:]
   allocate (z(2)[1::2,*])
end

$ gfortran-6 -fcoarray=single z1.f90
f951: internal compiler error: gfc_ref_dimen_size(): Bad dimension



$ cat z2.f90
program p
   integer, allocatable :: z(:)[:,:]
   allocate (z(2)[1:3:2,*])
end

$ gfortran-6 -fcoarray=single z2.f90
f951: internal compiler error: gfc_ref_dimen_size(): Bad dimension

Reply via email to