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

            Bug ID: 70914
           Summary: ICE in gimplify_var_or_parm_decl, at gimplify.c:1851
                    (and endless compilation)
           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: ---

This case is interesting. On my environment with gfortran 6.1.0 20160427
and SUSE Linux 64 bit, this compilation runs forever :

$ cat z3.f90
program p
   character(:), allocatable :: z
   z = 'z'
   z = z
   z = z
   z = z
   print *, z
end

$ gfortran-6 -c z3.f90
# ...



$ cat z2.f90
program p
   character(:), allocatable :: z
   z = 'z'
   z = z
   z = z
   print *, z
end

$ time timeout 10.0 gfortran-6 -c z2.f90
real    0m10.001s



And for the simplest case an ICE :

$ cat z1.f90
program p
   character(:), allocatable :: z
   z = 'z'
   z = z
   print *, z
end

$ gfortran-6 -c z1.f90
internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:1851

Reply via email to