r260441 - in /trunk/libstdc++-v3: ChangeLog src...
redi@gcc.gnu.org
redi@gcc.gnu.org
Mon May 21 12:52:00 GMT 2018
Author: redi
Date: Mon May 21 12:52:44 2018
New Revision: 260441
URL: https://gcc.gnu.org/viewcvs?rev=260441&root=gcc&view=rev
Log:
Fix std::filesystem::absolute for empty paths
* src/filesystem/std-ops.cc (absolute): Report an error for empty
paths.
(weakly_canonical(const path&)): Do not call canonical on empty path.
(weakly_canonical(const path&, error_code&)): Likewise.
* testsuite/27_io/filesystem/operations/absolute.cc: Check for errors.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/src/filesystem/std-ops.cc
trunk/libstdc++-v3/testsuite/27_io/filesystem/operations/absolute.cc
More information about the Libstdc++-cvs
mailing list