re PR c++/79232 (error: invalid rhs for gimple memory store)
authorJakub Jelinek <jakub@redhat.com>
Mon, 13 Feb 2017 19:31:14 +0000 (20:31 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 13 Feb 2017 19:31:14 +0000 (20:31 +0100)
commitb84702c0572614a71e720e9f822d1c31c7cea5b7
treedf43d3655d26975e5a4f7618be2d1f4f19b47b6b
parente1cb14c91a56a5ee7aad50e67361bcbec7441ca0
re PR c++/79232 (error: invalid rhs for gimple memory store)

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.

From-SVN: r245401
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/eval-order4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/pr79232.C [new file with mode: 0644]