[Bug libstdc++/64646] New overloads of std::is_permutation dereference past-the-end iterator
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jan 18 16:31:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64646
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Sun Jan 18 16:31:06 2015
New Revision: 219821
URL: https://gcc.gnu.org/viewcvs?rev=219821&root=gcc&view=rev
Log:
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.
Added:
trunk/libstdc++-v3/testsuite/25_algorithms/is_permutation/64646.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/stl_algo.h
More information about the Gcc-bugs
mailing list