[Bug libstdc++/52822] [C++11] stable_partition destroys sequence due to inappropriate self-move-assignment
jyasskin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 2 02:15:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52822
--- Comment #5 from Jeffrey Yasskin <jyasskin at gcc dot gnu.org> 2012-04-02 02:15:24 UTC ---
Created attachment 27058
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27058
Fix by skipping past true-predicate values
Here's an algorithmic fix that passes check-c++. As a side-effect, it makes
__find_if_not available outside C++11 mode. Look good for trunk? Would you want
the simpler __result1!=__first fix for 4.6 and/or 4.7, or is this approach good
for them too?
More information about the Gcc-bugs
mailing list