https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112994
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 56868 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56868&action=edit gcc14-pr112994-1.patch Untested patch which adds the first above mentioned pattern.