https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70494
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed May 18 15:59:13 2016 New Revision: 236410 URL: https://gcc.gnu.org/viewcvs?rev=236410&root=gcc&view=rev Log: PR c++/70494 - lambda capture of array * decl.c (cxx_maybe_build_cleanup): Handle non-decls. * typeck2.c (split_nonconstant_init_1): Use it. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-array2.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/decl.c branches/gcc-5-branch/gcc/cp/typeck2.c