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

            Bug ID: 93347
           Summary: [10 Regression] ICE: verify_cgraph_node failed (error:
                    calls_comdat_local is set outside of a comdat group)
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

g++-10.0.0-alpha20200119 snapshot (g:3684bbb022cd75da55e1457673f269980aa12cdf)
ICEs when compiling the following testcase, reduced from
clang/testsuite/CodeGenCXX/devirtualize-virtual-function-calls-final.cpp from
the clang 9.0.1 test suite, w/ -O3 --param early-inlining-insns=3 --param
ipa-cp-eval-threshold=100:

% g++-10.0.0-alpha20200119 -O3 --param early-inlining-insns=3 --param
ipa-cp-eval-threshold=100 -c vk0cmj0d.cpp
vk0cmj0d.cpp:26:1: error: calls_comdat_local is set outside of a comdat group
   26 | }
      | ^
_ZTch0_h4_N2dm2tvEv/2 (virtual nx* dm::_ZTch0_h4_N2dm2tvEv()) @0x7f526ae372d0
  Type: function
  Body removed by symtab_remove_unreachable_nodes
  Visibility: externally_visible public weak comdat comdat_group:_ZN2dm2tvEv
one_only section:.text._ZN2dm2tvEv (implicit_section) virtual artificial
  References: 
  Referring: 
  Availability: not_available
  Function flags: count:10000 (estimated locally) calls_comdat_local
indirect_call_target
  Former thunk fixed offset 4 virtual value 0 indirect_offset 0 has virtual
offset 0
  Called by: 
  Calls: 
during IPA pass: inline
vk0cmj0d.cpp:26:1: internal compiler error: verify_cgraph_node failed
0xb7c71e cgraph_node::verify_node()
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20200119/work/gcc-10-20200119/gcc/cgraph.c:3717
0xb6fc94 symtab_node::verify()
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20200119/work/gcc-10-20200119/gcc/symtab.c:1300
0xb70dd2 symtab_node::verify_symtab_nodes()
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20200119/work/gcc-10-20200119/gcc/symtab.c:1320
0xdef5bb symtab_node::checking_verify_symtab_nodes()
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20200119/work/gcc-10-20200119/gcc/cgraph.h:667
0xdef5bb symbol_table::remove_unreachable_nodes(_IO_FILE*)
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20200119/work/gcc-10-20200119/gcc/ipa.c:673
0x1947845 ipa_inline
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20200119/work/gcc-10-20200119/gcc/ipa-inline.c:2694
0x1947845 execute
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20200119/work/gcc-10-20200119/gcc/ipa-inline.c:3089

Reply via email to