https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78346
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Wed Feb 1 12:57:58 2017 New Revision: 245092 URL: https://gcc.gnu.org/viewcvs?rev=245092&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-5-branch/libstdc++-v3/testsuite/25_algorithms/search/78346.cc Modified: branches/gcc-5-branch/libstdc++-v3/ChangeLog branches/gcc-5-branch/libstdc++-v3/include/bits/predefined_ops.h