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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed May 22 22:14:34 2019
New Revision: 271527

URL: https://gcc.gnu.org/viewcvs?rev=271527&root=gcc&view=rev
Log:
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.

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

Reply via email to