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: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Dec 2007 20:18:43 -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 #4 from pcarlini at suse dot de 2007-12-26 20:18 -------
Sorry about a bit of confusion on my part :( In this specific testcase there is
no miscompilation either, of course. Whether the DLV problem is ultimately the
same, I don't know at the moment (it seems so), but in any case I don't think
the library is doing anything non-conforming, here, because, as I said, we are
certainly copying output iterators everywhere (was already like this in v2) and
doing it in one place more, before the assignment as in this testcase, doesn't
seem special at all.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34595