re PR c++/45437 (Loses reference during update)
authorJason Merrill <jason@redhat.com>
Sat, 9 Jul 2011 03:33:54 +0000 (23:33 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 9 Jul 2011 03:33:54 +0000 (23:33 -0400)
commit4063e61bc63c3803f8ab2d625ebe8432ac06b3da
tree2933e4a1c40cd6d7cb203f1eec34d632fcacf4b8
parent2fda8e144a7db5ba6025cfe643da0c6111cc2b0f
re PR c++/45437 (Loses reference during update)

PR c++/45437
gcc/
* gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
compound assignment.
gcc/c-family/
* c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
gcc/cp/
* typeck.c (cp_build_modify_expr): Preevaluate RHS.

From-SVN: r176072
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-omp.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/compound-asn1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/sequence-pt-1.C