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

--- Comment #13 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon May 23 21:21:18 2016
New Revision: 236615

URL: https://gcc.gnu.org/viewcvs?rev=236615&root=gcc&view=rev
Log:
        PR c++/70735 - generic lambda and local static variable

        * pt.c (tsubst_copy): Just return a local variable from
        non-template context.  Don't call rest_of_decl_compilation for
        duplicated static locals.
        (tsubst_decl): Set DECL_CONTEXT of local static from another
        function.

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

Reply via email to