https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92599
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |10.0 --- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- So we ICE at the end of cgraph_edge::speculative_call_info: (gdb) p ref $4 = <ipa_ref* 0x0> (gdb) p e $5 = <cgraph_edge* 0x7ffff769b5b0 (<cgraph_node * 0x7ffff74ac160 "ConvertASEToModelSurfaces.constprop"/113> -> <cgraph_node * 0x7ffff74ac420 "NumSurfaces"/115>)> (gdb) p e2 $6 = <cgraph_edge* 0x7ffff769b750 (<cgraph_node * 0x7ffff74ac160 "ConvertASEToModelSurfaces.constprop"/113> -> <cgraph_node * 0x0>)> As seen the edge is within idRenderModelStatic class. I bet the problem is the ODR warning message, the class is polymorphic in one TU, and normal class in another one.