[Bug c++/77792] Generic lamdba scope issue when working with list::remove_if
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77792 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|NEW |RESOLVED Target Milestone|--- |7.0 --- Comment #6 from Andrew Pinski --- Fixed. g++.dg/cpp1y/pr77585.C does seem to cover this enough really.
[Bug c++/77792] Generic lamdba scope issue when working with list::remove_if
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77792 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org Keywords|needs-bisection | --- Comment #5 from Martin Liška --- Likely fixed with r7-5422-g2a810dedce593e9b.
[Bug c++/77792] Generic lamdba scope issue when working with list::remove_if
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77792 Andrew Pinski changed: What|Removed |Added Known to work||7.1.0, 8.1.0 Keywords||needs-bisection Known to fail||6.4.0 --- Comment #4 from Andrew Pinski --- Both the original testcode in comment #0 and the reduced testcode in comment #3 seems to have been fixed for GCC 7+.
[Bug c++/77792] Generic lamdba scope issue when working with list::remove_if
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77792 --- Comment #3 from Jonathan Wakely --- The minimal example from an SO answer: template struct S { template static void f(); S() { void(*g)(char) = [](auto) { f<0>; }; } }; S<0> s;
[Bug c++/77792] Generic lamdba scope issue when working with list::remove_if
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77792 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed||2016-09-29 Ever confirmed|0 |1 --- Comment #2 from Jonathan Wakely --- Reduced: template void remove_if(Pred pred) { pred(1); } template struct S { template static void f() { } void run() { remove_if([](auto) { ; }); // (2) } }; int main() { S s; s.run(); }
[Bug c++/77792] Generic lamdba scope issue when working with list::remove_if
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77792 --- Comment #1 from Michele Caini --- See also this question on SO: http://stackoverflow.com/q/39766467/4987285