https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107886
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> --- Please read https://gcc.gnu.org/bugs/ and provide the requested info! It asks for several things which are still missing and should not be difficult, e.g. the output of `gcc -v` It works fine for me with x86_64-w64-mingw32 so this seems to be a problem with the mingw config, not with upstream GCC. Probably you don't have a threading library that GCC can use, such as pthreads-win32. But we can't tell how your GCC has been configured because you won't provide the requested information.