re PR libstdc++/64646 (New overloads of std::is_permutation dereference past-the...
authorJonathan Wakely <jwakely@redhat.com>
Sun, 18 Jan 2015 16:31:06 +0000 (16:31 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 18 Jan 2015 16:31:06 +0000 (16:31 +0000)
commit257024e31e297085e9f1d0c414f3a9cada93f300
tree0f8bbf389dd1b21a4b8270eba351c1303bcf2c1f
parent8fc4dc4adc207d36dce5e6820a1b95d6c83149db
re PR libstdc++/64646 (New overloads of std::is_permutation dereference past-the-end iterator)

PR libstdc++/64646
* include/bits/stl_algo.h (__is_permutation): Also test for reaching
end of the second range.
* testsuite/25_algorithms/is_permutation/64646.cc: New.

From-SVN: r219821
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/testsuite/25_algorithms/is_permutation/64646.cc [new file with mode: 0644]