https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85247

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The example in the standard is wrong, it is implementation-defined whether
"//host" is a root-name, or a root-directory followed by a filename.

On GNU/Linux and most POSIX systems there is no special treatment for a
pathname like "//host" and so our std::filesystem implementation just treats it
as a root-directory followed by a filename, i.e. "/" and "host".

For Cygwin our implementation should treat that as a root-name, because on
Cygwin "//host" is mapped to an SMB share called \\host

Reply via email to