This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/82360] [8 Regression] tree check fail in get_inner_reference, at expr.c:6996
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 09 Oct 2017 09:39:26 +0000
- Subject: [Bug c++/82360] [8 Regression] tree check fail in get_inner_reference, at expr.c:6996
- Auto-submitted: auto-generated
- References: <bug-82360-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82360
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org,
| |jason at gcc dot gnu.org
--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> ---
[Still occurs with today's Rev. 253536.]
Bisecting (for comment 2) points to:
https://gcc.gnu.org/viewcvs?rev=253266&root=gcc&view=rev
commit 4cedc476c94a41551d965bc57fbbe0186983c3c4
Author: jason
Date: Thu Sep 28 19:39:45 2017 +0000
PR c++/56973, DR 696 - capture constant variables only as needed.
* expr.c (mark_use): Split out from mark_rvalue_use and
mark_lvalue_use. Handle lambda capture of constant variables.
(mark_lvalue_use_nonread): New.
* semantics.c (process_outer_var_ref): Don't capture a constant
variable until forced.
* pt.c (processing_nonlambda_template): New.
* call.c (build_this): Check it.
* decl2.c (grok_array_decl): Call mark_rvalue_use and
mark_lvalue_use_nonread.
* init.c (constant_value_1): Don't call mark_rvalue_use.
* typeck.c (build_static_cast): Handle lambda capture.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253266
138bc75d-0d04-0410-961f-82ee72b054a4