https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105144
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 52743 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52743&action=edit gcc12-pr105144-2.patch And incremental fix for 3).