// PR c++/84802 // { dg-do compile { target c++14 } } template struct A { }; void f (A& ar) { [](const auto& x) { return [x]{}(); } (ar); }