https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107058

            Bug ID: 107058
           Summary: [11/12/13 Regression] ICE in
                    dwarf2out_die_ref_for_decl, at dwarf2out.cc:6038
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Started with g++-11 between 20201108 and 20201115,
using file c-c++-common/pr50459.c :


$ gcc-13-20220925 -c pr50459.c -flto -g -fdebug-types-section
$
$ g++-13-20220925 -c pr50459.c -flto -g -fdebug-types-section
during IPA pass: modref
pr50459.c:13:37: internal compiler error: in dwarf2out_die_ref_for_decl, at
dwarf2out.cc:6038
   13 | int __attribute__((aligned (A))) foo;
      |                                     ^
0xd29259 dwarf2out_die_ref_for_decl
        ../../gcc/dwarf2out.cc:6037
0x1017061 lto_write_tree_1
        ../../gcc/lto-streamer-out.cc:535
0x1017180 lto_write_tree
        ../../gcc/lto-streamer-out.cc:561
0x1017180 lto_output_tree_1
        ../../gcc/lto-streamer-out.cc:592
0x101f425 DFS::DFS(output_block*, tree_node*, bool, bool, bool)
        ../../gcc/lto-streamer-out.cc:892
0x1020bdb lto_output_tree(output_block*, tree_node*, bool, bool)
        ../../gcc/lto-streamer-out.cc:1859
0x1016a02 write_global_stream
        ../../gcc/lto-streamer-out.cc:2853
0x1023cf1 lto_output_decl_state_streams(output_block*, lto_out_decl_state*)
        ../../gcc/lto-streamer-out.cc:2900
0x1023cf1 produce_asm_for_decls()
        ../../gcc/lto-streamer-out.cc:3294
0x10c30bf write_lto
        ../../gcc/passes.cc:2771
0x10c716e ipa_write_summaries_1
        ../../gcc/passes.cc:2832
0x10c716e ipa_write_summaries()
        ../../gcc/passes.cc:2888
0xca8783 ipa_passes
        ../../gcc/cgraphunit.cc:2208
0xca8783 symbol_table::compile()
        ../../gcc/cgraphunit.cc:2281
0xcac42f symbol_table::compile()
        ../../gcc/cgraphunit.cc:2532
0xcac42f symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.cc:2529

Reply via email to