[Bug c++/79232] [7 Regression] error: invalid rhs for gimple memory store
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 13 19:32:00 GMT 2017
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
More information about the Gcc-bugs
mailing list