Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-generic-auto1.C

raw
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>
8 static void f()
9 {
10 [](auto b) {
11 auto c = +b;
12 }(42);
13 }
14 };
15
16 int main()
17 {
18 A<int>::f<int>();
19 }