repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-this9.C
blob
07ddd0863de290cb52230fca77d70c62840c78f4
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
};