r186098 - in /branches/google/gcc-4_6/libstdc++...
jyasskin@gcc.gnu.org
jyasskin@gcc.gnu.org
Tue Apr 3 01:45:00 GMT 2012
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
More information about the Libstdc++-cvs
mailing list