8sa1-gcc/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested7.C
Jason Merrill 7ab50e1794 PR c++/82070 - error with nested lambda capture
* pt.c (tsubst_expr) [DECL_EXPR]: Register capture proxies with
	register_local_specialization.

From-SVN: r251819
2017-09-06 15:36:48 -04:00

18 lines
184 B
C

// PR c++/82070
// { dg-do compile { target c++11 } }
namespace a {
template <typename b>
void
c (int, int, b d)
{
[d] { [d] {}; };
}
}
void
e ()
{
int f;
a::c (f, 3, [] {});
}