This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/82029] [8 Regression] bogus error: ‘__PRETTY_FUNCTION__’ was not declared in this scope


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]