re PR c++/66387 (ICE in make_decl_rtl with lambda)
authorJason Merrill <jason@redhat.com>
Tue, 9 Jun 2015 15:27:01 +0000 (11:27 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 9 Jun 2015 15:27:01 +0000 (11:27 -0400)
commit5af874fb6518ed3e21c1e0f750fac86788fdafa3
tree9daa2e07f2106d90a2a2ea5325b24c470fbb6ef0
parentebcf592c841f47aa38ce0a9d95b4f04af975b0ac
re PR c++/66387 (ICE in make_decl_rtl with lambda)

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.

From-SVN: r224287
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]