aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-10-13 19:14:04 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2024-10-13 19:27:23 +0100
commit27f6b376e8e196c7c85c8b47436cd2f2993768da (patch)
tree70ad8c01b4fb74bd8e886d5c94f25548d130ec25 /.github
parent2ef62aa1a3fb7ece56b0f7a8ba79ef7eac0991ec (diff)
downloadgcc-27f6b376e8e196c7c85c8b47436cd2f2993768da.zip
gcc-27f6b376e8e196c7c85c8b47436cd2f2993768da.tar.gz
gcc-27f6b376e8e196c7c85c8b47436cd2f2993768da.tar.bz2
libstdc++: Fix ranges::copy_backward for a single memcpyable element [PR117121]
The result iterator needs to be decremented before writing to it. Improve the PR 108846 tests for all of std::copy, std::copy_n, std::copy_backward, and the std::ranges versions. libstdc++-v3/ChangeLog: PR libstdc++/117121 * include/bits/ranges_algobase.h (copy_backward): Decrement output iterator before assigning one element through it. * testsuite/25_algorithms/copy/108846.cc: Ensure the algorithm's effects are correct for a single memcpyable element. * testsuite/25_algorithms/copy_backward/108846.cc: Likewise. * testsuite/25_algorithms/copy_n/108846.cc: Likewise.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions