[Bug fortran/70931] New: ICE with -g in native_encode_initializer, bei dwarf2out.c:17768
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Tue May 3 19:32:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70931
Bug ID: 70931
Summary: ICE with -g in native_encode_initializer, bei
dwarf2out.c:17768
Product: gcc
Version: 6.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gerhard.steinmetz.fortran@t-online.de
Target Milestone: ---
Up to now observed only with compile option -g.
Under the hoods possibly related to pr67542.
$ cat z1.f90
program p
type t
integer :: a
integer :: b(0)
end type
type(t), parameter :: z = t(1, [2])
print *, z
end
$ gfortran-6 -g -c z1.f90
internal compiler error: in native_encode_initializer, at dwarf2out.c:17767
$ gfortran-7-20160501 -g z1.f90
internal compiler error: in native_encode_initializer, at dwarf2out.c:17768
0x881dc0 native_encode_initializer
../../gcc/dwarf2out.c:17768
0x881982 native_encode_initializer
../../gcc/dwarf2out.c:17810
0x88ce15 tree_add_const_value_attribute
../../gcc/dwarf2out.c:17852
0x89aaef gen_const_die
../../gcc/dwarf2out.c:21258
0x89aaef gen_decl_die
../../gcc/dwarf2out.c:23404
0x89b82e dwarf2out_decl
../../gcc/dwarf2out.c:23954
0x8b2fc8 dwarf2out_early_global_decl
../../gcc/dwarf2out.c:23627
0x6f9d3b do_traverse_symtree
../../gcc/fortran/symbol.c:3817
0x73eb65 gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6328
0x6cabc0 translate_all_program_units
../../gcc/fortran/parse.c:5613
0x6cabc0 gfc_parse_file()
../../gcc/fortran/parse.c:5819
0x70ca32 gfc_be_parse_file
../../gcc/fortran/f95-lang.c:201
More information about the Gcc-bugs
mailing list