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

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

Derived from a modified legacy code :


$ cat z1.f90
program p
   character :: c(4) = [1h(, 1hi, 1h4, 1h)]
end


$ gfortran-8-20171105 -c z1.f90
z1.f90:2:22:

    character :: c(4) = [1h(, 1hi, 1h4, 1h)]
                      1
Warning: Extension: Conversion from HOLLERITH to CHARACTER(1) at (1)
z1.f90:2:41:

    character :: c(4) = [1h(, 1hi, 1h4, 1h)]
                                         1
Warning: Legacy Extension: Hollerith constant at (1)
f951: internal compiler error: Segmentation fault
0xb60fdf crash_signal
        ../../gcc/toplev.c:324
0x6642e1 gfc_resolve_character_array_constructor(gfc_expr*)
        ../../gcc/fortran/array.c:2069
0x6f5fd6 gfc_resolve_expr(gfc_expr*)
        ../../gcc/fortran/resolve.c:6751
0x7064b9 resolve_values
        ../../gcc/fortran/resolve.c:11488
0x71ae0b do_traverse_symtree
        ../../gcc/fortran/symbol.c:4157
0x703889 resolve_types
        ../../gcc/fortran/resolve.c:16344
0x6ff04c gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:16440
0x6e89ba resolve_all_program_units
        ../../gcc/fortran/parse.c:6030
0x6e89ba gfc_parse_file()
        ../../gcc/fortran/parse.c:6280
0x72d3bf gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to