This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/52822] [C++11] stable_partition destroys sequence due to inappropriate self-move-assignment
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 01 Apr 2012 22:09:45 +0000
- Subject: [Bug libstdc++/52822] [C++11] stable_partition destroys sequence due to inappropriate self-move-assignment
- Auto-submitted: auto-generated
- References: <bug-52822-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52822
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-04-01 22:09:45 UTC ---
PS: then shall we just do the assignment only when __result1 != __first, or
algorithmically we can do better? In case we can also imagine having the
trivial fix for 4.6 and maybe even 4.7.1 and committing it to mainline too
without considering the issue resolved, in case later on somebody figures out
something smarter algorithmically.