[Bug libstdc++/34595] std::copy copies the output iterator before assigning
paolo at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 26 21:59:00 GMT 2007
------- Comment #5 from paolo at gcc dot gnu dot org 2007-12-26 21:59 -------
Subject: Bug 34595
Author: paolo
Date: Wed Dec 26 21:58:49 2007
New Revision: 131188
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131188
Log:
2007-12-26 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/34595
* include/bits/stl_algobase.h (struct __cm_assign): Remove.
(struct __copy_move<true, false, _Category>,
struct __copy_move<true, false, random_access_iterator_tag>,
struct __copy_move_backward<true, false, _Category>,
struct __copy_move_backward<true, false, random_access_iterator_tag>):
Add.
(struct __copy_move, struct __copy_move_backward,
struct __copy_move<false, false, random_access_iterator_tag>,
struct __copy_move_backward<false, false, random_access_iterator_tag>):
Adjust.
* testsuite/25_algorithms/copy/34595.C: New.
Added:
trunk/libstdc++-v3/testsuite/25_algorithms/copy/34595.C
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/stl_algobase.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34595
More information about the Gcc-bugs
mailing list