]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR libstdc++/90557 fix path assignment that alters source
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 May 2019 22:14:34 +0000 (22:14 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 May 2019 22:14:34 +0000 (22:14 +0000)
commitf92c002f8cbc5be0121dffc51e67474df178ccb0
tree5e8c520f2c788fa9b41b914b291fe2ba461f955b
parent74d6bdb661be38c979a8233f871f60c9031be4b4
PR libstdc++/90557 fix path assignment that alters source

PR libstdc++/90557
* src/c++17/fs_path.cc (path::_List::operator=(const _List&)): Fix
reversed arguments to uninitialized_copy_n.
* testsuite/27_io/filesystem/path/assign/copy.cc: Check that source
is unchanged by copy assignment.
* testsuite/util/testsuite_fs.h (compare_paths): Use std::equal to
compare path components.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271527 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++17/fs_path.cc
libstdc++-v3/testsuite/27_io/filesystem/path/assign/copy.cc
libstdc++-v3/testsuite/util/testsuite_fs.h