https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88881
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #3) > The "nonexistent-path/.." part is reported as > https://sourceforge.net/p/mingw-w64/bugs/782/ And is apparently a feature not a bug. That's just how paths work on Windows. Go figure. So the remaining problem is the trailing slash, which is fixed in mingw-w64 v6.0.0, and I have a workaround for.