https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121496
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Ted Lyngmo from comment #1) > I now think clang++-18.1 (where the code compiles) was shipped with > libstdc++ 13.2.0 which supports my idea that there was a regression in > libstdc++ 14. Clang doesn't ship with any libstdc++, it uses whatever libstdc++ you happen to have installed (or that you tell it to use with e.g. --gcc-install-dir or --gcc-toolchain). For Compiler Explorer, each clang build uses a particular libstdc++ version that is co-installed in the relevant container. But that's just a choice made by compiler explorer, not how anything shipped.