Files
gcc-reflection/gcc/testsuite/g++.dg/cpp1y/lambda-generic-const1.C
Jason Merrill b6b9902193 re PR c++/67411 (internal compiler error: in tsubst_copy, at cp/pt.c:13473)
PR c++/67411

	* decl2.c (decl_maybe_constant_var_p): A proxy isn't constant.

From-SVN: r231862
2015-12-20 13:38:30 -05:00

19 lines
201 B
C

// PR c++/67411
// { dg-do compile { target c++14 } }
template <class T>
void f()
{
int i = 42;
[x = i] {
[&](auto) {
[=] { return x; }();
}(1);
}();
}
int main()
{
f<int>();
}