https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98038
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Target Milestone|--- |10.3 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Fixed already. <source>: In instantiation of 'my_mem_fn<Dummy, int() const>(int (Dummy::*)() const)::<lambda(U&&, ARGS&& ...)> [with U = std::reference_wrapper<Dummy>; ARGS = {}]': <source>:32:13: required from here <source>:17:30: error: 'operator()' not defined 17 | return operator()(pmf, p.get(), std::forward<ARGS>(args)...); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ASM generation compiler returned: 1 <source>: In instantiation of 'my_mem_fn<Dummy, int() const>(int (Dummy::*)() const)::<lambda(U&&, ARGS&& ...)> [with U = std::reference_wrapper<Dummy>; ARGS = {}]': <source>:32:13: required from here <source>:17:30: error: 'operator()' not defined 17 | return operator()(pmf, p.get(), std::forward<ARGS>(args)...); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Execution build compiler returned: 1