https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84520
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Tue Feb 27 02:47:25 2018 New Revision: 258024 URL: https://gcc.gnu.org/viewcvs?rev=258024&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-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-nsdmi1.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/lambda.c