[patch] libstdc++/64646 fix 4-iterator overload of std::is_permutation

Jonathan Wakely jwakely@redhat.com
Sun Jan 18 16:31:00 GMT 2015


Fix a past-the-end dereference in the new C++14 version of
is_permutation. This only affects C++14 mode, but fixes a new function
that exists entirely because it's meant to be safer than the C++98
version ... but it isn't safer if it goes past-the-end!

Tested x86_64-linux, committed to 4.9 and trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2354 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150118/ce626030/attachment.bin>


More information about the Libstdc++ mailing list