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