https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94250
--- Comment #4 from David Binderman <dcb314 at hotmail dot com> --- (In reply to Martin Liška from comment #3) > A nice catch David! I've got a patch for it. Thanks. I should also perhaps mention that testsuite file ./g++.dg/ipa/remref-2.C has the same problem. It would be wise to ensure your patch fixes both.