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

            Bug ID: 70853
           Summary: ICE on pointing to null, in gfc_add_block_to_block, at
                    fortran/trans.c:1599
           Product: gcc
           Version: 6.1.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: ---

With the following codes :


$ cat z1.f90
program p
   real, pointer :: z(:)
   z(1:2) => null()
end

$ gfortran-6 -c z1.f90
internal compiler error: in gfc_add_block_to_block, at fortran/trans.c:1599



$ cat z2.f90
program p
   real, pointer :: z(:)
   z(2:1) => null()
end

$ gfortran-6 -c z2.f90
internal compiler error: in gfc_add_block_to_block, at fortran/trans.c:1599

$ gfortran-5.3.1 -c z2.f90
internal compiler error: Segmentation fault

Reply via email to