https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100186
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Yeah, only GCC 10 and later seems to define std::thread in <thread> unconditionally, older releases made it conditional on #ifdef _GLIBCXX_HAS_GTHREADS or on #if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1) The fact that something is in C++11 doesn't mean we can assume it in GCC, while GCC 4.8.x which we still want to support had roughly complete C++11 FE support, I think the libstdc++ side wasn't there yet.