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 c++/76782] New: create_directory(path) gives an error if path exists


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

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