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

            Bug ID: 101717
           Summary: ICE capturing static member by ref within stateless
                    lambda
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johelegp at gmail dot com
                CC: johelegp at gmail dot com
  Target Milestone: ---

See https://godbolt.org/z/z4d4qhx8j.
```C++
struct x {
  static void f() noexcept { }
  void (*_)() = [] { [&](auto) { f(); }(0); };
};
```

Reply via email to