[Bug fortran/91783] New: [10 Regression] ICE in gfc_dep_resolver, at fortran/dependency.c:2111

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug fortran/91783] New: [10 Regression] ICE in gfc_dep_resolver, at fortran/dependency.c:2111

marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91783

            Bug ID: 91783
           Summary: [10 Regression] ICE in gfc_dep_resolver, at
                    fortran/dependency.c:2111
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: [hidden email]
  Target Milestone: ---

Changed between 20190630 and 20190728 :


$ cat z1.f90
program p
   class(*), allocatable :: a(:)
   a = [1, 2, 3]
   a = f(a)
contains
   function f(x) result(y)
      class(*), allocatable, intent(in) :: x(:)
      class(*), allocatable :: y(:)
      y = x
   end
end


$ gfortran-10-20190630 -c z1.f90
$
$ gfortran-10-20190915 -c z1.f90
z1.f90:4:0:

    4 |    a = f(a)
      |
internal compiler error: in gfc_dep_resolver, at fortran/dependency.c:2111
0x6b9cce gfc_dep_resolver(gfc_ref*, gfc_ref*, gfc_reverse*, bool)
        ../../gcc/fortran/dependency.c:2111
0x6ba2a0 gfc_check_dependency(gfc_expr*, gfc_expr*, bool)
        ../../gcc/fortran/dependency.c:1373
0x6d35be gfc_conv_resolve_dependencies(gfc_loopinfo*, gfc_ss*, gfc_ss*)
        ../../gcc/fortran/trans-array.c:4847
0x704c55 gfc_trans_assignment_1
        ../../gcc/fortran/trans-expr.c:10736
0x6c4f5f trans_code
        ../../gcc/fortran/trans.c:1852
0x6edd14 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6781
0x677af6 translate_all_program_units
        ../../gcc/fortran/parse.c:6254
0x677af6 gfc_parse_file()
        ../../gcc/fortran/parse.c:6493
0x6c1a0f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204
Reply | Threaded
Open this post in threaded view
|

[Bug fortran/91783] [10 Regression] ICE in gfc_dep_resolver, at fortran/dependency.c:2111

marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91783

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
   Target Milestone|---                         |10.0