This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/49559] [C++0x] stable_sort calls self-move-assignment operator
- 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: Tue, 28 Jun 2011 10:41:25 +0000
- Subject: [Bug libstdc++/49559] [C++0x] stable_sort calls self-move-assignment operator
- Auto-submitted: auto-generated
- References: <bug-49559-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49559
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chris at bubblescope dot
| |net
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-06-28 10:41:20 UTC ---
So, I added a:
Index: util/testsuite_rvalref.h
===================================================================
--- util/testsuite_rvalref.h (revision 175578)
+++ util/testsuite_rvalref.h (working copy)
@@ -68,6 +68,7 @@
operator=(rvalstruct&& in)
{
bool test __attribute__((unused)) = true;
+ VERIFY( this != &in );
VERIFY( in.valid == true );
val = in.val;
in.valid = false;
and got fails for the 25_algorithms/inplace_merge/moveable.cc tests.
Chris, are you willing to have a look? I seem to remember that you did a lot of
work in this area...
I'm not seeing other fails, luckily.