https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98533
--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 60667 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60667&action=edit gcc15-pr98533.patch Full untested patch with a lambda to simplify repeated code.