https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100111
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 50613 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50613&action=edit gcc11-pr100111.patch This works for me on the testcase and passes make check-c++-all, but haven't bootstrapped or fully regtested it yet.