https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103775
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 52682 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52682&action=edit gcc12-pr103775.patch This untested patch seems to work.