diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-07-24 21:49:10 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-07-24 21:49:10 +0100 |
commit | e874029dd994ce1dd098a143aa06a0894da7b7de (patch) | |
tree | 75e812b20a7595ed400dd6b2dd7a1a87a4a76037 /gcc/expr.c | |
parent | ed623edb473d862673fc0bbc6b878074667ca5fb (diff) | |
download | gcc-e874029dd994ce1dd098a143aa06a0894da7b7de.zip gcc-e874029dd994ce1dd098a143aa06a0894da7b7de.tar.gz gcc-e874029dd994ce1dd098a143aa06a0894da7b7de.tar.bz2 |
PR libstdc++/86658 fix __niter_wrap to not copy invalid iterators
An output iterator passed as the unused first argument to __niter_wrap
might have already been invalidated, so don't copy it.
PR libstdc++/86658
* include/bits/stl_algobase.h (__niter_wrap<_Iterator>): Pass unused
parameter by reference, to avoid copying invalid iterators.
* testsuite/25_algorithms/copy/86658.cc: New test.
From-SVN: r262952
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions