PR libstdc++/88884 fix filesystem::absolute("//") for mingw
authorJonathan Wakely <jwakely@redhat.com>
Thu, 17 Jan 2019 15:32:05 +0000 (15:32 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 17 Jan 2019 15:32:05 +0000 (15:32 +0000)
commitfc6f857bd30bd678323783a595fc132769cdc659
tree50fde227b2b65d8e1c2a5b2a8eb129b9360858c6
parentdd0f7ba27314978e77aab5d8da1eb6070805ee4c
PR libstdc++/88884 fix filesystem::absolute("//") for mingw

PR libstdc++/88884
* src/c++17/fs_ops.cc (absolute(const path&, error_code&)): Do nothing
if the path is already absolute.
[_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Normalize root-directory.
[!_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Pass error_code to current_path.

From-SVN: r268035
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++17/fs_ops.cc