https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113386
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jan Schultke from comment #0) > Clang with -stdlib=libc++ compiles this, as does MSVC. Bug #90203 was > incorrectly closed. No PR 90203 was not closed incorrectly as that was what the C++ standard said at the time (and even says still for C++20). C++ LWG defect report 3865 added this to the standard for C++23: https://cplusplus.github.io/LWG/lwg-defects.html#3865 GCC just does not implement that yet ...