https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80064
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- #include <algorithm> #include <vector> bool greater(int, int); int main() { std::vector<int> v; std::make_heap<std::vector<int>::iterator, bool (int, int)> (v.begin(), v.end(), greater); }