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++/85040] [8 Regression] std::less<void> fails when operator< is overloaded


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85040

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu Mar 22 14:23:27 2018
New Revision: 258773

URL: https://gcc.gnu.org/viewcvs?rev=258773&root=gcc&view=rev
Log:
PR libstdc++/85040 fix std::less<void> etc. ambiguities

        PR libstdc++/85040
        * include/bits/stl_function.h (greater::__not_overloaded)
        (less::__not_overloaded, greater_equal::__not_overloaded)
        (less_equal::__not_overloaded): Fix ambiguous specializations.
        * testsuite/20_util/function_objects/comparisons_pointer.cc: Add
        tests for type with overlaoded operators.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_function.h
   
trunk/libstdc++-v3/testsuite/20_util/function_objects/comparisons_pointer.cc

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