https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83756
--- Comment #7 from Jacob Godserv <jacobgodserv at gmail dot com> --- Richard, I ran into the same issues trying to reproduce on Linux. The problem is the code here relies on boost/thread which uses all Windows-specific typing and API, which is nicely pointed out by boost devs with that assert. I've mangled the .ii file to compile and it bypasses the crash as well. This is the mingw-w64 toolchain I've been using (visit with a browser to get a mirror selected): https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/7.2.0/threads-win32/seh/x86_64-7.2.0-release-win32-seh-rt_v5-rev0.7z Let me know if you need me to do anything to help with this bug.