Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this17.C

raw
1 // PR c++/58481
2 // { dg-require-effective-target c++11 }
3
4 struct Test {
5 template<typename... Args> inline void triggerTest (Args&&... fargs) { }
6 };
7
8 struct TestPickled : Test {
9 template<typename... Args> void triggerTest (Args&&... fargs) {
10 [=](Args... as) { // { dg-warning "implicit capture" "" { target c++2a } }
11 Test::triggerTest (as...);
12 } ();
13 }
14 };
15
16 int main()
17 {
18 TestPickled test;
19 test.triggerTest ();
20 return 0;
21 }