Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-generic-this3.C

raw
1 // PR c++/87685
2 // { dg-do compile { target c++14 } }
3
4 struct A
5 {
6 template <typename T> static void f(T) {}
7 void f() {}
8
9 void foo()
10 {
11 [] (auto&& v) { A::f(v); }; // OK if parameter type is specified
12 }
13 };