This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/77693] New: ICE in rtl_for_decl_init, at dwarf2out.c:17378
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Sep 2016 17:07:28 +0000
- Subject: [Bug fortran/77693] New: ICE in rtl_for_decl_init, at dwarf2out.c:17378
- Auto-submitted: auto-generated
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.fortran@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