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

            Bug ID: 85507
           Summary: [8 Regression] ICE in gfc_dep_resolver, at
                    fortran/dependency.c:2258
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Introduced recently, between 20180325 and 20180422 :


$ cat z1.f90
program p
   integer :: x[*]
   x[2] = x
end


$ cat z2.f90
subroutine sub (n, x)
   integer :: n, x[*]
   x[n] = x
end


$ cat z3.f90
subroutine sub (n, x)
   integer :: i, n, x[*]
   do i = 2, n
      x[i] = x
   end do
end


$ gfortran-8-20180325 -c z1.f90 -fcoarray=lib
$
$ gfortran-8-20180422 -c z1.f90 -fcoarray=lib
z1.f90:3:0:

    x[2] = x

internal compiler error: in gfc_dep_resolver, at fortran/dependency.c:2258
0x7405a4 gfc_dep_resolver(gfc_ref*, gfc_ref*, gfc_reverse*)
        ../../gcc/fortran/dependency.c:2258
0x792595 conv_caf_send
        ../../gcc/fortran/trans-intrinsic.c:1863
0x798a8d gfc_conv_intrinsic_subroutine(gfc_code*)
        ../../gcc/fortran/trans-intrinsic.c:10981
0x74abb2 trans_code
        ../../gcc/fortran/trans.c:1887
0x771f99 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6507
0x701120 translate_all_program_units
        ../../gcc/fortran/parse.c:6121
0x701120 gfc_parse_file()
        ../../gcc/fortran/parse.c:6324
0x747e2f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to