[Bug libstdc++/78346] [5/6/7 Regression] std::search with binary comparison predicate uses invalid reference
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 1 12:58:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78346
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Feb 1 12:57:46 2017
New Revision: 245091
URL: https://gcc.gnu.org/viewcvs?rev=245091&root=gcc&view=rev
Log:
PR78346 make <bits/predefined_ops.h> handle stashing iterators
PR libstdc++/78346
* include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
not its referent.
(_Iter_comp_to_iter): Likewise.
* testsuite/25_algorithms/search/78346.cc: New test.
Added:
branches/gcc-6-branch/libstdc++-v3/testsuite/25_algorithms/search/78346.cc
Modified:
branches/gcc-6-branch/libstdc++-v3/ChangeLog
branches/gcc-6-branch/libstdc++-v3/include/bits/predefined_ops.h
More information about the Gcc-bugs
mailing list