[Bug c++/98038] ICE on invalid trying to recursively invoke a lambda object with operator()

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 23 20:30:06 GMT 2021


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


More information about the Gcc-bugs mailing list