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

Eric Fiselier <eric at efcs dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eric at efcs dot ca

--- Comment #1 from Eric Fiselier <eric at efcs dot ca> ---
Note that the instantiation is not spurious, but instead required by the core
language. All overloads of _Bind::operator() are considered during the call to
the forwarding call wrapper.

While considering the const qualified overload the compiler is forced to
instantiate the lambda to deduce the return type. This causes a error in a
non-immediate context which causes the compile error.

Reply via email to