Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/lambda-init15a.C

raw
1 // PR c++/71837
2 // { dg-do compile { target c++14 } }
3
4 template < typename ... Ts > void f (Ts ... args)
5 {
6 [ts (args ...)] { return ts; } (); // { dg-error "" }
7 }
8
9 int main ()
10 {
11 f (); // { dg-message "required" }
12 f (1,2); // { dg-message "required" }
13 return 0;
14 }