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

--- Comment #14 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue May 31 21:36:16 2016
New Revision: 236950

URL: https://gcc.gnu.org/viewcvs?rev=236950&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:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-static1.C
    branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-static2.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/pt.c

Reply via email to