https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97768
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 49529 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49529&action=edit gcc11-pr97768.patch More complete (but still untested) patch.