aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/class.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-04-05 17:56:14 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-04-05 17:56:14 +0100
commitd96f11a2720c8ddfc3d181b181cfaadd888323cd (patch)
treeafbf6b6816e29fd29cd900906f354e82fde3df91 /gcc/fortran/class.c
parent10f26de9155b71a2bd5055060004420939cf7a2d (diff)
downloadgcc-d96f11a2720c8ddfc3d181b181cfaadd888323cd.zip
gcc-d96f11a2720c8ddfc3d181b181cfaadd888323cd.tar.gz
gcc-d96f11a2720c8ddfc3d181b181cfaadd888323cd.tar.bz2
Make filesystem::path safe for self assignment
The standard says "If *this and p are the same object, has no effect." Previously we ended up clearing the path. * include/bits/fs_path.h (path::operator=(path&&)): Check for self assignment. * src/c++17/fs_path.cc (path::operator=(const path&)): Likewise. * testsuite/27_io/filesystem/path/assign/copy.cc: Test self assignment. From-SVN: r270171
Diffstat (limited to 'gcc/fortran/class.c')
0 files changed, 0 insertions, 0 deletions