[Bug fortran/85521] New: [8 Regression] ICE in gfc_resolve_character_array_constructor, at fortran/array.c:2049

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Tue Apr 24 17:50:00 GMT 2018


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

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

Changed between 20180121 and 20180128 :


$ cat z1.f90
program p
   character(3) :: c = 'abc'
   character(3) :: z(1)
   z = [ c(:-1) ]
   print *, z
end


$ gfortran-8-20180121 z1.f90 -static-libgfortran
$ a.out

$ gfortran-8-20180422 -c z1.f90
f951: internal compiler error: in gfc_resolve_character_array_constructor, at
fortran/array.c:2049
0x67b151 gfc_resolve_character_array_constructor(gfc_expr*)
        ../../gcc/fortran/array.c:2049
0x70e6d6 gfc_resolve_expr(gfc_expr*)
        ../../gcc/fortran/resolve.c:6768
0x714c60 gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:11098
0x7176fa resolve_codes
        ../../gcc/fortran/resolve.c:16535
0x7177fe gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:16570
0x700f4a resolve_all_program_units
        ../../gcc/fortran/parse.c:6060
0x700f4a gfc_parse_file()
        ../../gcc/fortran/parse.c:6310
0x747e2f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204


More information about the Gcc-bugs mailing list