This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/86910] std::filesystem::create_directories doesn't set error code or throw while violating postcondition.


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).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]