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

            Bug ID: 93660
           Summary: ICE in ipa_simd_modify_function_body, at
                    omp-simd-clone.c:993
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Affects versions down to r7 :


$ cat z1.f90
integer function f(x)
   integer :: x[*]
   !$omp declare simd
   f = x[1]
end


$ gfortran-10-20200209 -c z1.f90 -fopenmp -fcoarray=single
$
$ gfortran-10-20200209 -c z1.f90 -fopenmp -fcoarray=lib
during IPA pass: simdclone
z1.f90:5:0:

    5 | end
      |
internal compiler error: in ipa_simd_modify_function_body, at
omp-simd-clone.c:993
0x179e6cc ipa_simd_modify_function_body
        ../../gcc/omp-simd-clone.c:993
0x179f330 simd_clone_adjust
        ../../gcc/omp-simd-clone.c:1188
0x17a3faf expand_simd_clones(cgraph_node*)
        ../../gcc/omp-simd-clone.c:1751
0x17a4af7 ipa_omp_simd_clone
        ../../gcc/omp-simd-clone.c:1772
0x17a4af7 execute
        ../../gcc/omp-simd-clone.c:1800

Reply via email to