Sign in
gnu
/
gcc
/
1ba7adabf29eb671e418692fad076ea6edd08e3d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-auto3.C
blob: 013ed5264eaf3c8073c2fb22d727e2a022d2185a [
file
] [
log
] [
blame
]
// PR c++/57526
// { dg-require-effective-target c++11 }
template
<
class
T
>
struct
A
{
void
bar
(
)
{
}
void
foo
(
)
{
auto
*
this_ptr
=
this
;
auto
lc
=
[&](
)
{
this_ptr
->
bar
();
};
lc
();
}
};
int
main
()
{
A
<int>
a
;
a
.
foo
();
}