1 // PR c++/84802
2 // { dg-do compile { target c++14 } }
3 
4 template <class T> struct A { };
5 
f(A<int> & ar)6 void f (A<int>& ar)
7 {
8   [](const auto& x)
9     { return [x]{}(); }
10   (ar);
11 }
12