Debian Codegraph @

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

raw
1 // PR c++/54277
2 // { dg-do compile { target c++11 } }
3
4 struct Used
5 {
6 void foo() { }
7 };
8
9 template <typename>
10 struct S
11 {
12 Used x;
13
14 void bar()
15 {
16 auto f = [this] { x.foo(); };
17 f();
18 }
19 };