https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90451
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> --- Created attachment 50537 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50537&action=edit WIP Fix Here's an approach that moves the mark_used calls closer to where the functions are actually used. We might also try moving the calls the other way, to as soon as we have a unique result. Either way, this is too risky for a diagnostic issue at this point in the release cycle, so deferring.