https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103949
--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #10) > Oh I missed the part about __STDCPP_THREADS__ not being defined for > mingw-w64. That seems like it's worth a distinct bug report that can focus > just on that. I don't think that is a bug though because that mingw toolchain was configured with --enable-threads=single in that case (so libstdc++ does not have the full support). Most likely it needs to be configured with --enable-threads=win32 to support that.