diff options
author | Mitsuru Kariya <kariya_mitsuru@hotmail.com> | 2013-09-11 22:24:50 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-09-11 22:24:50 +0000 |
commit | 4b47d65500aac94a4726fa57935366dd1616c14c (patch) | |
tree | c2b99462fd063dc457a51c589c4228eef285b714 /gcc/alloc-pool.c | |
parent | 088845a5f0ba6f712c80bdb9a3a3e98c11f5681f (diff) | |
download | gcc-4b47d65500aac94a4726fa57935366dd1616c14c.zip gcc-4b47d65500aac94a4726fa57935366dd1616c14c.tar.gz gcc-4b47d65500aac94a4726fa57935366dd1616c14c.tar.bz2 |
re PR libstdc++/58358 (search_n has a Complexity violation for random access iterator)
2013-09-11 Mitsuru Kariya <kariya_mitsuru@hotmail.com>
Chris Jefferson <chris@bubblescope.net>
PR libstdc++/58358
* include/bits/stl_algo.h (search_n): Fix to guarantee a number
of comparisons <= number of elements in the range.
* testsuite/25_algorithms/search_n/58358.cc: New.
* testsuite/25_algorithms/search_n/iterator.cc: Extend.
Co-Authored-By: Chris Jefferson <chris@bubblescope.net>
From-SVN: r202510
Diffstat (limited to 'gcc/alloc-pool.c')
0 files changed, 0 insertions, 0 deletions