[Bug libstdc++/52822] [C++11] stable_partition destroys sequence due to inappropriate self-move-assignment

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Mon Apr 2 09:10:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52822

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot
                   |                            |com

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-04-02 09:10:16 UTC ---
Ah great, thanks. For the FSF branches, I would say, let's just condition the
assignment on 4.6 (+ testcase) and have the complete fix/improvement for
4.7/4.8. Can you send the patch to the mailing lists too? Minor nit: first
blush, doesn't seem completely obvious to me what a 'true' predicate is - and
normally we just have a test for each overload, eg, with/without predicate.
Thus I would recommend extending a bit the comment in the testcase, even better
also have a separate testcase (named as the PR #) for the specific case in the
PR and also extend at will the existing test(s).



More information about the Gcc-bugs mailing list