https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89084
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I'll include the PR83246 testcase (which is fixed with this patch too) in the patch as well. PR82009 is indeed the same thing, but the testcase from this PR and PR82009 is actually the same it seems. I'm not getting ICEs without -flto, just undefined symbols that can't be defined elsewhere. I'll do my bootstraps in 90 minutes or so (together with other patches).