8sa1-gcc/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested6.C
Jason Merrill c60faeee9e PR c++/80267 - ICE with nested capture of reference
PR c++/60992
	* pt.c (tsubst_copy): Handle lookup finding a capture proxy.

From-SVN: r246793
2017-04-09 01:06:08 -04:00

13 lines
171 B
C

// PR c++/80267
// { dg-do compile { target c++11 } }
template <typename> void a() {
int b;
auto &c = b;
[&] {
c;
[&] { c; };
};
}
void d() { a<int>(); }