This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/76782] create_directory(path) gives an error if path exists
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Aug 2016 13:31:22 +0000
- Subject: [Bug c++/76782] create_directory(path) gives an error if path exists
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-76782-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=76782
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jo from comment #0)
> relates to c++17
>
> filesystem::create_directory(path) gives an exception if path already
> exists, but the C++standard FDIS N4604 27.10.15.7 says:
N.B. that's the C++17 CD not the FDIS, and we don't implement the Filesystem
library in the CD yet, we only implement the Filesystem TS:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4099.html#fs.op.create_directory
> "Creation failure because p resolves to an existing directory shall not be
> treated as an error."
The same requirement is in the TS.
The bug has already been fixed for the next release.
*** This bug has been marked as a duplicate of bug 71036 ***