https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118874
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 60651 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60651&action=edit gcc15-pr118874.patch This seems to work for me for both PRs. Untested otherwise.