[Bug fortran/85798] New: ICE in get_array_index, at fortran/data.c:69

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Tue May 15 19:18:00 GMT 2018


            Bug ID: 85798
           Summary: ICE in get_array_index, at fortran/data.c:69
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

While wrapped in a type, hits versions down to at least 4.8 :

$ cat z1.f90
program p
   type t
      integer, allocatable :: a(:)
   end type
   type(t) :: z
   data z%a(1) / 789 /

$ gfortran-9-20180513 -c z1.f90
f951: internal compiler error: Segmentation fault
0xb9f4bf crash_signal
0x68e8da get_array_index
0x68e8da gfc_assign_data_value(gfc_expr*, gfc_expr*, __mpz_struct*,
__mpz_struct (*) [1])
0x711ee9 check_data_variable
0x712232 traverse_data_var
0x71cd01 resolve_data
0x71cd01 resolve_types
0x71839c gfc_resolve(gfc_namespace*)
0x701b6a resolve_all_program_units
0x701b6a gfc_parse_file()
0x748adf gfc_be_parse_file

More information about the Gcc-bugs mailing list