[Bug c++/82029] [8 Regression] bogus error: ‘__PRETTY_FUNCTION__’ was not declared in this scope
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 31 20:08:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82029
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Aug 31 15:39:04 2017
New Revision: 251567
URL: https://gcc.gnu.org/viewcvs?rev=251567&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-__func__2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list