1 // PR c++/77522 2 // { dg-do compile { target c++14 } } 3 f(T)4 template < class T = int > void f (T) 5 { 6 auto g = [&a = f] () {}; // { dg-error "invalid initialization" } 7 } 8 main()9 int main () 10 { 11 f (0); 12 return 0; 13 } 14