https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80064
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Thu Mar 16 14:32:07 2017 New Revision: 246197 URL: https://gcc.gnu.org/viewcvs?rev=246197&root=gcc&view=rev Log: PR libstdc++/80064 make heap algorithms work with function types PR libstdc++/80064 * include/bits/stl_heap.h (__is_heap, push_heap, __adjust_heap) (pop_heap, make_heap, sort_heap, is_heap_until, is_heap): Cope with invalid instantiations using function types for _Compare argument. * testsuite/25_algorithms/make_heap/80064.cc: New test. Added: trunk/libstdc++-v3/testsuite/25_algorithms/make_heap/80064.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/stl_heap.h