This is the mail archive of the libstdc++-cvs@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]