https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105606
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Joel Johnson from comment #4) > > Wait you didn't mention you needed -std=c++20 to get the failure. > > Ah indeed, my apologies! > > I'm unable to reproduce the Clang failure using -std=c++20, at least in a > quick godbolt check at https://godbolt.org/z/3W4xeYdWs. Try clang trunk. clang 14 in godbolt uses the libstdc++ headers from GCC 11.2.0.