blob: 6b4ed347eeea113284aca978004ac7e62723f109 [file] [log] [blame]
// PR c++/77522
// { dg-do compile { target c++14 } }
template < class T = int > void f (T)
{
auto g = [&a = f] () {}; // { dg-error "auto" }
}
int main ()
{
f (0);
return 0;
}