Sign in
gnu
/
gcc
/
4aef14b09557ce072f1269bd8a05fa2b1df0eda2
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-const2.C
blob: 9a00e22eef990d70706a6e826b05a00a5adced98 [
file
] [
log
] [
blame
]
// PR c++/67411
// { dg-do compile { target c++14 } }
template
<
class
T
>
void
f
()
{
int
i
=
42
;
[=]
{
const
int
x
=
i
;
[&](
auto
)
{
[=]
{
return
x
;
}();
}(
1
);
}();
}
int
main
()
{
f
<int>
();
}