https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86910
--- Comment #4 from Steffen Schuemann <ssh at pobox dot com> --- I just realised, if I'm all wrong, and not handling this as an error is the way to go, as described in LWG-defect-#2935, create_directory() would violate the new behaviour described in 2935, as it passes my unit tests so it throws an exception if a file with that name exists. One way or the other, something doesn't match (also verified on g++ 8.1.0 on macOS and by looking into the code).