8sa1-gcc/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-array2.C
Jason Merrill 8e718ecbb0 re PR c++/70494 (Internal Compiler Error: Capturing an array of vectors in a lambda)
PR c++/70494

	* decl.c (cxx_maybe_build_cleanup): Handle non-decls.
	* typeck2.c (split_nonconstant_init_1): Use it.

From-SVN: r235003
2016-04-15 00:02:49 -04:00

11 lines
138 B
C

// PR c++/70494
// { dg-do compile { target c++11 } }
struct A { ~A(); };
int main()
{
A v[] = { A(), A() };
auto lambda = [v]{};
}