https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66387
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Wed Jun 17 14:33:08 2015 New Revision: 224558 URL: https://gcc.gnu.org/viewcvs?rev=224558&root=gcc&view=rev Log: PR c++/66387 * pt.c (tsubst_copy) [VAR_DECL]: Use process_outer_var_ref. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-ice2.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/pt.c branches/gcc-5-branch/gcc/cp/semantics.c