https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71864
--- Comment #3 from niXman <i.nixman at autistici dot org> --- (In reply to Markus Trippelsdorf from comment #2) > I cannot reproduce the problem on gcc-6 branch or trunk. Try to use this build: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/6.1.0/threads-win32/sjlj/x86_64-6.1.0-release-win32-sjlj-rt_v5-rev0.7z