https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88881
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> --- My fix for the trailing slash does: #if _GLIBCXX_FILESYSTEM_IS_WINDOWS #if ! defined __MINGW64_VERSION_MAJOR || __MINGW64_VERSION_MAJOR < 6 // stat() fails if there's a trailing slash (PR 88881) I'm seeing status("./") fail with mingw64 6.0.0 so apparently the workaround is still needed.