https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86452
Bug ID: 86452 Summary: ICE in force_decl_die, at dwarf2out.c:25922 with -g1 and -flto Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: rguenth at gcc dot gnu.org Target Milestone: --- Probably similar to PR85176, I see it in libqtwebkit package: lto1: internal compiler error: in force_decl_die, at dwarf2out.c:25922 0xe10a5a force_decl_die ../../gcc/dwarf2out.c:25922 0xe105e6 force_decl_die ../../gcc/dwarf2out.c:5799 0xe105e6 get_context_die ../../gcc/dwarf2out.c:25860 0x5f4582 gen_type_die_with_usage ../../gcc/dwarf2out.c:25371 0xe00693 gen_type_die ../../gcc/dwarf2out.c:25558 0xe00693 gen_decl_die ../../gcc/dwarf2out.c:26272 0xe093d6 gen_member_die ../../gcc/dwarf2out.c:24995 0xe093d6 gen_struct_or_union_type_die ../../gcc/dwarf2out.c:25092 0xe093d6 gen_tagged_type_die ../../gcc/dwarf2out.c:25302 0xe0276d gen_type_die_with_usage ../../gcc/dwarf2out.c:25503 0xe02895 gen_type_die_with_usage ../../gcc/dwarf2out.c:25461 0xe00693 gen_type_die ../../gcc/dwarf2out.c:25558 0xe00693 gen_decl_die ../../gcc/dwarf2out.c:26272 0xe093d6 gen_member_die ../../gcc/dwarf2out.c:24995 0xe093d6 gen_struct_or_union_type_die ../../gcc/dwarf2out.c:25092 0xe093d6 gen_tagged_type_die ../../gcc/dwarf2out.c:25302 0xe0276d gen_type_die_with_usage ../../gcc/dwarf2out.c:25503 0xe02895 gen_type_die_with_usage ../../gcc/dwarf2out.c:25461 0xe00693 gen_type_die ../../gcc/dwarf2out.c:25558 0xe00693 gen_decl_die ../../gcc/dwarf2out.c:26272 $ (gdb) p decl $1 = (tree) 0x7ffff6787130 (gdb) p debug_tree(decl) <namespace_decl 0x7ffff6787130 JSC type <void_type 0x7ffff659ff18 void asm_written VOID align:8 warn_if_not_align:0 symtab:0 alias-set -1 structural-equality pointer_to_this <pointer_type 0x7ffff65a60a8>> public VOID /home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha2/Source/JavaScriptCore/jit/JITCompilationEffort.h:29:11 align:1 warn_if_not_align:0 context <translation_unit_decl 0x7ffff6595168 /home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha2/Source/JavaScriptCore/b3/testb3.cpp>> Note it's a huge package, thus test-case reduction will be quite difficult. Ideas what to do with that?