https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90557

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed May 22 22:36:21 2019
New Revision: 271528

URL: https://gcc.gnu.org/viewcvs?rev=271528&root=gcc&view=rev
Log:
PR libstdc++/90557 fix path assignment that alters source

Backport from mainline
2019-05-22  Jonathan Wakely  <jwak...@redhat.com>

        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.

Modified:
    branches/gcc-9-branch/libstdc++-v3/ChangeLog
    branches/gcc-9-branch/libstdc++-v3/src/c++17/fs_path.cc
   
branches/gcc-9-branch/libstdc++-v3/testsuite/27_io/filesystem/path/assign/copy.cc
    branches/gcc-9-branch/libstdc++-v3/testsuite/util/testsuite_fs.h

Reply via email to