https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107605
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords| |rejects-valid Ever confirmed|0 |1 Last reconfirmed| |2022-11-10 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- This has nothing to do with std::bind. extern "C" int puts(const char*); template <typename T> class myclass { public: void func(const T&) requires true { puts("true"); } void func(const T&) requires false { puts("false"); } }; auto mylambda = &myclass<int>::func; req.C:18:32: error: unable to deduce ‘auto’ from ‘& myclass<int>::func’ 18 | auto mylambda = &myclass<int>::func; | ^~~~ req.C:18:32: note: couldn’t deduce template parameter ‘auto’ I think there's an existing bug about this.