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 19:09:32 -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 #3 from pcarlini at suse dot de 2007-12-26 19:09 -------
And now I see what is really going wrong: this is a miscompilation, which
actually Richard reported to me a few days ago. Indeed, nothing in the
definition of the iterator can possibly zero the c member besides the default
constructor, which is only called once, at beginning. The issue affects DLV.
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenther at suse dot de,
| |pcarlini at suse dot de
AssignedTo|pcarlini at suse dot de |unassigned at gcc dot gnu
| |dot org
Status|ASSIGNED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34595