https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89241

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Feb 11 23:05:16 2019
New Revision: 268784

URL: https://gcc.gnu.org/viewcvs?rev=268784&root=gcc&view=rev
Log:
        PR c++/89241 - ICE with __func__ in lambda in template.

When we're instantiating a generic lambda, its enclosing context will
have already been instantiated, so we need to look for that as well.

        * pt.c (enclosing_instantiation_of): Also check
        instantiated_lambda_fn_p for the template context.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-func1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c

Reply via email to