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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
FWIW it seems converting an explicit object lambda to a function pointer is not
allowed currently: https://eel.is/c++draft/expr.prim.lambda.closure#12
https://cplusplus.github.io/CWG/issues/2561.html

But converting a static op() lambda to a function pointer should work:
https://eel.is/c++draft/expr.prim.lambda.closure#14

Reply via email to