PR libstdc++/59603
commit0a25b348c511172bd53c5fbca35942cc6c362e8b
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Sep 2014 13:30:35 +0000 (12 13:30 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Sep 2014 13:30:35 +0000 (12 13:30 +0000)
treeb6136e609c67d0b85b3b2a73e97b8141cf1d97c1
parentfef284e9ddc10429a00fcadbd14c9559b15220a0
PR libstdc++/59603
* include/bits/stl_algo.h (random_shuffle): Prevent self-swapping.
* testsuite/25_algorithms/random_shuffle/59603.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215219 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/testsuite/25_algorithms/random_shuffle/59603.cc [new file with mode: 0644]