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

            Bug ID: 97896
           Summary: [11 Regression] ICE in gfc_trans_assignment_1, at
                    fortran/trans-expr.c:11156
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Follow-up of pr91651, changed between 20201004 and 20201018 :


$ cat z1.f90
program p
   logical :: a(2)
   integer :: b(2)
   b = index('xyxy', 'yx', a, 4)
   print *, b
end


$ gfortran-11-20201004 -c z1.f90
$
$ gfortran-11-20201115 -c z1.f90
z1.f90:4:32:

    4 |    b = index('xyxy', 'yx', a, 4)
      |                                1
internal compiler error: in gfc_trans_assignment_1, at
fortran/trans-expr.c:11156
0x764094 gfc_trans_assignment_1
        ../../gcc/fortran/trans-expr.c:11155
0x725aa7 trans_code
        ../../gcc/fortran/trans.c:1888
0x74bbe4 gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:6878
0x6d2e86 translate_all_program_units
        ../../gcc/fortran/parse.c:6347
0x6d2e86 gfc_parse_file()
        ../../gcc/fortran/parse.c:6616
0x71ee2f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

Reply via email to