Bug ID: 77693
           Summary: ICE in rtl_for_decl_init, at dwarf2out.c:17378
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot
  Target Milestone: ---

Needs option -g in combination with -Og, -Os, -O1 or higher.
For versions down to at least 4.8.

$ cat z1.f90
program p
   complex, pointer :: a
   real :: z
   data a /(1.,2.)/
   z = a
   print *, z

$ gfortran-7-20160918 -g -O2 z1.f90


internal compiler error: in rtl_for_decl_init, at dwarf2out.c:17378
0x898e8a rtl_for_decl_init
0x8993de rtl_for_decl_location
0x8b9306 add_location_or_const_value_attribute
0x8c0602 gen_variable_die
0x8b2899 gen_decl_die
0x8cbf9b process_scope_var
0x8cc167 decls_for_scope
0x8b01e6 gen_subprogram_die
0x8b277c gen_decl_die
0x8b372e dwarf2out_decl
0x8cbb9e dwarf2out_function_decl
0x925acf rest_of_handle_final
0x925acf execute

Reply via email to