https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98586
--- Comment #6 from Keith Marshall <keith.marshall at mailinator dot com> --- (In reply to David Malcolm from comment #5) > Should be fixed by the above commit. I applied your patch, and disabled (by changing "#ifdef _WIN32" to "#if 0") the effect of my own, so that the invalid assumption regarding Win32 DIR_SEPARATOR is not corrected. I now see: $ ./tut01-hello-world.exe internal compiler error: in make_tempdir_path_template, at jit/jit-tempdir.c:73 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. so all looks good, thanks. Just one residual irritation: after displaying this error message, in the console, MS-Windows pops up a dialogue box to tell me that the program has stopped working, and invites me to (pointlessly) forward an error report to Microsoft, before finally terminating the process. Just another annoying Windows feature, which I don't know how to circumvent, short of hacking the registry, and the control panel settings, to disable Windows error reporting altogether. BTW, you may wish to consider the patches, which I have attached to: https://osdn.net/projects/mingw/ticket/41070 They do help those building libgccjit for MS-Windows.