https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84520
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Tue Feb 27 04:22:24 2018 New Revision: 258027 URL: https://gcc.gnu.org/viewcvs?rev=258027&root=gcc&view=rev Log: PR c++/84520 - ICE with generic lambda in NSDMI. * lambda.c (lambda_expr_this_capture): Don't look for fake NSDMI 'this' in a generic lambda instantiation. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-nsdmi1.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/lambda.c