diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-05-21 13:52:44 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-05-21 13:52:44 +0100 |
commit | 8a49324e8a22e47e38656d0a7e2073af186204d6 (patch) | |
tree | 5068c314d6c6bfe307c4e16a72b4cbdbd9b4f026 /gcc | |
parent | cc343938cbb65881f9a6e3bc019aeff6c5a38137 (diff) | |
download | gcc-8a49324e8a22e47e38656d0a7e2073af186204d6.zip gcc-8a49324e8a22e47e38656d0a7e2073af186204d6.tar.gz gcc-8a49324e8a22e47e38656d0a7e2073af186204d6.tar.bz2 |
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.
From-SVN: r260441
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions