1 // Related to c++/81525
2 // { dg-do compile { target c++14 } }
3 
4 template <class X>
5 struct A
6 {
7   template <class T>
fA8   static void f()
9   {
10     [](auto b) {
11       auto c = +b;
12     }(42);
13   }
14 };
15 
main()16 int main()
17 {
18   A<int>::f<int>();
19 }
20