This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79232] [7 Regression] error: invalid rhs for gimple memory store
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 13 Feb 2017 19:31:47 +0000
- Subject: [Bug c++/79232] [7 Regression] error: invalid rhs for gimple memory store
- Auto-submitted: auto-generated
- References: <bug-79232-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79232
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Feb 13 19:31:14 2017
New Revision: 245401
URL: https://gcc.gnu.org/viewcvs?rev=245401&root=gcc&view=rev
Log:
PR c++/79232
* typeck.c (cp_build_modify_expr): Handle properly COMPOUND_EXPRs
on lhs that have {PRE{DEC,INC}REMENT,MODIFY,MIN,MAX,COND}_EXPR
in the rightmost operand.
* g++.dg/cpp1z/eval-order4.C: New test.
* g++.dg/other/pr79232.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp1z/eval-order4.C
trunk/gcc/testsuite/g++.dg/other/pr79232.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog