This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/86910] std::filesystem::create_directories doesn't set error code or throw while violating postcondition.
- From: "ssh at pobox dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 11 Aug 2018 08:26:18 +0000
- Subject: [Bug libstdc++/86910] std::filesystem::create_directories doesn't set error code or throw while violating postcondition.
- Auto-submitted: auto-generated
- References: <bug-86910-4@http.gcc.gnu.org/bugzilla/>
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).