Hi, Thanks for the update. Please pay attention to the difference between std::experimental::filesystem and std::filesystem. GCC 7.2 supports std::experimental::filesystem but not std::filesystem. The former also compiles without problems with Mingw-w64 5.0.3 / gcc 7.2.0. However, std::experimental::filesystem::rename does not work at all as described on Windows (if I recall it correctly it just looks like it calls directly std::rename), which pretty much ruins completely the idea of such a cross-platform...
I get the same behaviour also with native MinGW g++ (7.2.0) on Windows.
To be precise: I am using MinGW-w64, not MinGW...
std::experimental::filesystem::rename does not overwrite existing file
Now I realise what I am using is MinGW-w64, not MinGW. I got confused about the two projects with almost similar names and posted my report to the wrong one. Sorry, my bad. Please feel free to close this one in case it is not relevant for you. I will recreate a similar report for the MinGW-w64 project.
std::experimental::filesystem::rename does not overwrite existing file