https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113563
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> --- It works if we capture 'this' indirectly, e.g. via an init-capture: struct S { void f() { [this_=this](this auto) { return this_; }; } };