This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/76782] New: create_directory(path) gives an error if path exists
- From: "bremende55 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Aug 2016 13:17:23 +0000
- Subject: [Bug c++/76782] New: create_directory(path) gives an error if path exists
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=76782
Bug ID: 76782
Summary: create_directory(path) gives an error if path exists
Product: gcc
Version: 6.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bremende55 at gmail dot com
Target Milestone: ---
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:
"Creation failure because p resolves to an existing directory shall not be
treated as an error."
boost does it right, i.e. does not throw an exception in this case