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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
We can make it a rejects-valid testcase instead of a runtime abort:

#include <functional>

struct Obj {
  Obj() = default;
  Obj(const Obj&) = delete;
};

bool f(const Obj&) { return true; }

int main() {
  Obj obj;
  std::bind_front<f>()(obj);
  std::not_fn    <f>()(obj);
}

Reply via email to