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

Johel Ernesto Guerrero Peña <johelegp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE capturing static member |ICE capturing static member
                   |by ref within stateless     |within stateless generic
                   |lambda                      |lambda

--- Comment #1 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> ---
A bit simpler and a clarification: capturing at all within a generic stateless
lambda. https://godbolt.org/z/q11fT7MM8.
```C++
struct x {
  static void f() { }
  void (*_)() = [] { [=](auto) { f(); }(0); };
};
```

Reply via email to