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

            Bug ID: 93482
           Summary: ICE in gfc_resolve_character_array_constructor, at
                    fortran/array.c:2096
           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: ---

Similar to pr65428, and down to at least r5 :


$ cat z1.f90
program p
   print *, [[character::]]
end


$ cat z2.f90
program p
   integer :: i
   character, parameter :: c(0) = 'a'
   print *, [[c]]
   print *, [[('b',i=1,0)]]
end


$ gfortran-10-20200126 -c z1.f90
f951: internal compiler error: in gfc_resolve_character_array_constructor, at
fortran/array.c:2096
0x61b706 gfc_resolve_character_array_constructor(gfc_expr*)
        ../../gcc/fortran/array.c:2096
0x6bf014 gfc_resolve_expr(gfc_expr*)
        ../../gcc/fortran/resolve.c:7049
0x6b803c gfc_resolve_expr(gfc_expr*)
        ../../gcc/fortran/resolve.c:6967
0x6b803c gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:11688
0x6c6f2f gfc_resolve_blocks(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:10715
0x6b6d68 gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:11678
0x6b95e7 resolve_codes
        ../../gcc/fortran/resolve.c:17205
0x6b96ae gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:17240
0x6a7a0c resolve_all_program_units
        ../../gcc/fortran/parse.c:6244
0x6a7a0c gfc_parse_file()
        ../../gcc/fortran/parse.c:6491
0x6f265f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:210

Reply via email to