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

Reply via email to