This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/34595] std::copy copies the output iterator before assigning
- From: "paolo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Dec 2007 21:59:03 -0000
- Subject: [Bug libstdc++/34595] std::copy copies the output iterator before assigning
- References: <bug-34595-1902@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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