[Bug c++/77792] Generic lamdba scope issue when working with list::remove_if

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 29 12:52:00 GMT 2016


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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The minimal example from an SO answer:

template<int>
struct S {
  template<int> static void f();
  S() { void(*g)(char) = [](auto) { f<0>; }; }
};
S<0> s;


More information about the Gcc-bugs mailing list