https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102839
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Martin, did you use -stdlib=libc++ with Clang? Otherwise you're just testing libstdc++ again with a different compiler. Libc++ does not throw on this testcase for me. (The test is invalid though, it needs to include <clocale> to use std::setlocale, but that's not the problem)