This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/78346] [5/6/7 Regression] std::search with binary comparison predicate uses invalid reference


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]