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

Jiang An <de34 at live dot cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |de34 at live dot cn

--- Comment #1 from Jiang An <de34 at live dot cn> ---
(In reply to Arthur O'Dwyer from comment #0)
> Btw, I do like that GCC eagerly and SFINAE-friendlily rejects `[&](this T)
> {}`. I hope fixing this bug doesn't require undoing that feature.
> (By "SFINAE-friendly" I mean https://godbolt.org/z/fK4f13343 )
> See also
> https://quuxplusone.github.io/blog/2024/01/23/capturing-lambda-deducing-this/

Hmm... after reading CWG2672
(https://cplusplus.github.io/CWG/issues/2672.html), I think the
SFINAE-friendliness is actually required since the parameter list of a lambda
expression is in the immediate context (only the lambda body is excluded).

Reply via email to