[Bug ipa/124700] [16 Regression] ICE in verify_cgraph_node failed, comdat-local symbol referred to by ... since r16-6651

jmelcr at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 31 09:50:47 GMT 2026


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

--- Comment #5 from Josef Melcr <jmelcr at gcc dot gnu.org> ---
_Z2aoIsEib._omp_fn.0.constprop.0/36 (_Z2aoIsEib._omp_fn.0)
  Type: function definition analyzed
  Visibility: artificial
  Address is taken.
  References: k/2 (addr) __gxx_personality_v0/27 (addr)
  Referring:
  Availability: available
  Function flags: count:59055799 (estimated locally) body process
  Called by: _Z2aoIsEib.constprop.0/35 (callback) (1073741824 (estimated
locally),1.00 per call)
  Calls: _ZN1iILi0EE1jEv/12 (1014686024 (estimated locally),17.18 per call)
(can throw external) _Z2aei/24 (1014686024 (estimated locally),17.18 per call)
(can throw external) _ZN1bC1Ev/25 (55807731 (estimated
 locally),0.95 per call) (can throw external) _ZN1bD1Ev/26 (55807731 (estimated
locally),0.95 per call)

_Z2aoIsEib.constprop.0/35 (int ao(bool) [with <template-parameter-1-1> = short
int])
  Type: function definition analyzed
  Visibility: artificial
  References: _Z2aoIsEib._omp_fn.0/23 (addr) ab/1 (read)
  Referring:
  Availability: local
  Function flags: count:1073741824 (estimated locally) body process local
executed_once
  Called by: _Z41__static_initialization_and_destruction_0v/20 (1073741824
(estimated locally),1.00 per call) (can throw external) _Z2azv/4 (1073741824
(estimated locally),1.00 per call) (can throw external)
  Calls: GOMP_parallel/28 (has_callback) (1073741824 (estimated locally),1.00
per call) _Z1ai/29 (1073741824 (estimated locally),1.00 per call) (can throw
external) _Z2aoIsEib._omp_fn.0.constprop.0/36 (callbac
k) (1073741824 (estimated locally),1.00 per call)

Even though both the dispatching function and the kernel get cloned and
properly redirected, there is still a dangling ipa-ref to the old kernel. This
reference should have been cleaned up in cgraph_edge::redirect_callee, but it
pops back up for some reason. Investigating.


More information about the Gcc-bugs mailing list