[Bug libstdc++/58358] [4.7/4.8/4.9 Regression] search_n has a Complexity violation for random access iterator
paolo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 11 22:25:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58358
--- Comment #24 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Sep 11 22:24:50 2013
New Revision: 202510
URL: http://gcc.gnu.org/viewcvs?rev=202510&root=gcc&view=rev
Log:
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.
Added:
trunk/libstdc++-v3/testsuite/25_algorithms/search_n/58358.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/stl_algo.h
trunk/libstdc++-v3/testsuite/25_algorithms/search_n/iterator.cc
More information about the Gcc-bugs
mailing list