This is the mail archive of the
libstdc++-cvs@gcc.gnu.org
mailing list for the libstdc++ project.
r186098 - in /branches/google/gcc-4_6/libstdc++...
- From: jyasskin at gcc dot gnu dot org
- To: libstdc++-cvs at gcc dot gnu dot org
- Date: Tue, 03 Apr 2012 01:45:03 -0000
- Subject: r186098 - in /branches/google/gcc-4_6/libstdc++...
Author: jyasskin
Date: Tue Apr 3 01:45:02 2012
New Revision: 186098
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186098
Log:
Simple fix for PR-52822.
* include/bits/stl_algo.h (__stable_partition_adaptive):
Avoid move-assigning an object to itself by explicitly testing
for identity.
* testsuite/25_algorithms/stable_partition/pr52822.cc:
Test vectors, which have a destructive self-move-assignment.
* testsuite/25_algorithms/stable_partition/moveable.cc (test02):
Test with rvalstruct, which explicitly checks self-move-assignment.
Added:
branches/google/gcc-4_6/libstdc++-v3/testsuite/25_algorithms/stable_partition/pr52822.cc
Modified:
branches/google/gcc-4_6/libstdc++-v3/ChangeLog.google-4_6
branches/google/gcc-4_6/libstdc++-v3/include/bits/stl_algo.h
branches/google/gcc-4_6/libstdc++-v3/testsuite/25_algorithms/stable_partition/moveable.cc