https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109469
--- Comment #5 from Sam James <sjames at gcc dot gnu.org> --- (In reply to Sam James from comment #4) > This might be a dupe of PR108783 or PR109410 but I had to try reduce it to > be relatively sure, so may as well file it here for completeness. I thought it was interesting in this case that it happens even without a definition of foo which was the main motivation for bothering here.