aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-threadedge.h
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-05-15 13:07:09 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2018-05-15 13:07:09 +0100
commit6cda876da273e36bb65f843a9bf39576258ebf19 (patch)
tree7d4b3f2e2b2fc7b7fb1c963aa9aabb5b8659f94a /gcc/tree-ssa-threadedge.h
parente4a5135fe3cfc77a2f7ea8d2fc55a346ed711789 (diff)
downloadgcc-6cda876da273e36bb65f843a9bf39576258ebf19.zip
gcc-6cda876da273e36bb65f843a9bf39576258ebf19.tar.gz
gcc-6cda876da273e36bb65f843a9bf39576258ebf19.tar.bz2
PR libstdc++/84159 fix appending strings to paths
The path::operator/=(const Source&) and path::append overloads were still following the semantics of the Filesystem TS not C++17. Only the path::operator/=(const path&) overload was correct. This change adds more tests for path::operator/=(const path&) and adds new tests to verify that the other append operations have equivalent behaviour. PR libstdc++/84159 * include/bits/fs_path.h (path::operator/=, path::append): Construct temporary path before calling _M_append. (path::_M_append): Change parameter to path and implement C++17 semantics. * testsuite/27_io/filesystem/path/append/path.cc: Add helper function and more examples from the standard. * testsuite/27_io/filesystem/path/append/source.cc: New. * testsuite/27_io/filesystem/path/decompose/filename.cc: Add comment. * testsuite/27_io/filesystem/path/nonmember/append.cc: New. From-SVN: r260255
Diffstat (limited to 'gcc/tree-ssa-threadedge.h')
0 files changed, 0 insertions, 0 deletions