This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66387] [5/6 Regression] ICE in make_decl_rtl with lambda
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Jun 2015 15:27:33 +0000
- Subject: [Bug c++/66387] [5/6 Regression] ICE in make_decl_rtl with lambda
- Auto-submitted: auto-generated
- References: <bug-66387-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66387
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
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