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

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Sep 18 18:36:47 2017
New Revision: 252941

URL: https://gcc.gnu.org/viewcvs?rev=252941&root=gcc&view=rev
Log:
        PR c++/81525 - wrong constant value with generic lambda

        * pt.c (tsubst_decl) [VAR_DECL]: Avoid clobbering auto.
        (tsubst_copy) [VAR_DECL]: Handle auto.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/lambda-generic-const4.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/pt.c

Reply via email to