This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77792] Generic lamdba scope issue when working with list::remove_if
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Sep 2016 12:52:42 +0000
- Subject: [Bug c++/77792] Generic lamdba scope issue when working with list::remove_if
- Auto-submitted: auto-generated
- References: <bug-77792-4@http.gcc.gnu.org/bugzilla/>
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;