https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98985
--- Comment #2 from m.heinzler at heinzler dot de <m.heinzler at heinzler dot de> --- (In reply to Jonathan Wakely from comment #1) > I'll fix it by using MoveFileExW in posix::rename instead. > > MoveFileExW seems to have some weird differences from POSIX rename when the > source or destination name is a directory. Yes, after taking another look that seems much better suited there. I don't know about all the differences but as the currently used Microsoft implementation of rename is also far from POSIX compliant I'd guess this is a project for another day :). At least I have not stumbled upon any issues related to that yet. Thank you!