https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104654
--- Comment #3 from Brecht Sanders <brechtsanders at users dot sourceforge.net> --- What I think needs to be fixed is really libphobos/libdruntime/core/sys/posix/pthread.d It should also include version(MinGW) parts to define POSIX threads from MinGW-w64 when GCC is built with --enable-threads=posix