r224287 - in /trunk/gcc: cp/ChangeLog cp/semant...
jason@gcc.gnu.org
jason@gcc.gnu.org
Tue Jun 9 15:27:00 GMT 2015
Author: jason
Date: Tue Jun 9 15:27:01 2015
New Revision: 224287
URL: https://gcc.gnu.org/viewcvs?rev=224287&root=gcc&view=rev
Log:
PR c++/66387
* semantics.c (process_outer_var_ref): Make sure the value is
actually constant before returning it.
* typeck.c (cp_build_array_ref): Allow subscripting non-lvalue
array.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const5.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck.c
More information about the Gcc-cvs
mailing list