https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77693
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 gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de 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 end $ gfortran-7-20160918 -g -O2 z1.f90 z1.f90:7:0: end internal compiler error: in rtl_for_decl_init, at dwarf2out.c:17378 0x898e8a rtl_for_decl_init ../../gcc/dwarf2out.c:17378 0x8993de rtl_for_decl_location ../../gcc/dwarf2out.c:17582 0x8b9306 add_location_or_const_value_attribute ../../gcc/dwarf2out.c:17703 0x8c0602 gen_variable_die ../../gcc/dwarf2out.c:21468 0x8b2899 gen_decl_die ../../gcc/dwarf2out.c:23778 0x8cbf9b process_scope_var ../../gcc/dwarf2out.c:23264 0x8cc167 decls_for_scope ../../gcc/dwarf2out.c:23289 0x8b01e6 gen_subprogram_die ../../gcc/dwarf2out.c:21008 0x8b277c gen_decl_die ../../gcc/dwarf2out.c:23711 0x8b372e dwarf2out_decl ../../gcc/dwarf2out.c:24194 0x8cbb9e dwarf2out_function_decl ../../gcc/dwarf2out.c:24209 0x925acf rest_of_handle_final ../../gcc/final.c:4502 0x925acf execute ../../gcc/final.c:4544