https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89641
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 45929 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45929&action=edit gcc9-pr89641.patch I think the following patch should fix it, but if these issues didn't show up (for all the changed spots) in some test when libstdc++ is tested in c++2a mode, then we need better testsuite coverage for this.