1 // PR c++/84520 2 // { dg-do compile { target c++14 } } 3 4 struct A 5 { 6 static void foo(int); 7 void (*f)(int) = [](auto i) { foo(i); }; 8 }; 9