https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67114
--- Comment #9 from Cezary Śliwa <sliwa at ifpan dot edu.pl> --- One think I missed is that MinGW64 uses the winpthreads library. If using winpthreads, there is no failure. However, as far as I understand, pthreads-win32 is in use in MinGW.