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>();
}