https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128522
Josef Melcr <jmelcr at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jmelcr at gcc dot
gnu.org
--- Comment #4 from Josef Melcr <jmelcr at gcc dot gnu.org> ---
Found the same ICE during patch review for PR128227.
The code in redirect_callee expects the old reference to be there, which
doesn't have to be the case during cloning. This bug also exposed that the
references are poorly managed in general, because we don't even clone them
during inlining or redirect them when chanigng call statements.
I am working on a fix.