http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60992

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri May  2 19:47:56 2014
New Revision: 210018

URL: http://gcc.gnu.org/viewcvs?rev=210018&root=gcc&view=rev
Log:
    PR c++/60992
    * lambda.c (lambda_capture_field_type): Wrap anything dependent
    other than 'this' or a VLA.
    (is_this): New.
    * pt.c (tsubst_copy) [VAR_DECL]: Also build a new VAR_DECL if
    the operand was static or constant.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const3.C
Modified:
    branches/gcc-4_9-branch/gcc/cp/ChangeLog
    branches/gcc-4_9-branch/gcc/cp/lambda.c
    branches/gcc-4_9-branch/gcc/cp/pt.c

Reply via email to