PR c++/82029 - __PRETTY_FUNCTION__ in lambda in template
authorJason Merrill <jason@redhat.com>
Thu, 31 Aug 2017 15:39:04 +0000 (11:39 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 31 Aug 2017 15:39:04 +0000 (11:39 -0400)
commitb54d4018b17c8e7be96cedd211e7c9dd5d1c3e43
treeb4c0272397b660cccc114bdba77600bbaa9f0269
parent28f4ff35247bb085d5de9816c6ced4dc4e14269e
PR c++/82029 - __PRETTY_FUNCTION__ in lambda in template

* pt.c (enclosing_instantiation_of, lambda_fn_in_template_p)
(regenerated_lambda_fn_p): New.
(tsubst_decl) [VAR_DECL]: Use enclosing_instantiation_of.
(tsubst_copy) [VAR_DECL]: Likewise.

From-SVN: r251567
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-__func__2.C [new file with mode: 0644]