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