https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113258
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is a C++ standard issue I suspect which cannot be fixed just in libstdc++. I suspect libc++ and MSVC's C++ library all have a similar issue too.