PR c++/66387
commit64d82fbcd952079513fe291b902f092917f9e5c2
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jun 2015 15:27:01 +0000 (9 15:27 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jun 2015 15:27:01 +0000 (9 15:27 +0000)
tree9daa2e07f2106d90a2a2ea5325b24c470fbb6ef0
parent34569785778d2cd4dbce551f7634940536c17484
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224287 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const5.C [new file with mode: 0644]