PR c++/89241 - ICE with __func__ in lambda in template.
authorJason Merrill <jason@redhat.com>
Mon, 11 Feb 2019 23:05:16 +0000 (18:05 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 11 Feb 2019 23:05:16 +0000 (18:05 -0500)
commit0df9962aa8165580b1c61de81429ab6d3cde0b58
tree5e4e8111e6e2ca8fa1e7e09392cf2dc585d544d9
parentab97c3cdaf837637722237a4d1c33ddfdf6f7ee7
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.

From-SVN: r268784
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/lambda-generic-func1.C [new file with mode: 0644]