re PR c/49644 (post-increment of promoted operand is incorrect.)
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Jul 2011 19:41:55 +0000 (21:41 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 7 Jul 2011 19:41:55 +0000 (21:41 +0200)
commite834d8486a88ee5664c0c2e17b4c2dbd811c0c65
treea9beb78a1647efd76c07e82f4a3098a474d6a4a5
parentc4603e7ce0b0e007db25abc234a85d1562a9c988
re PR c/49644 (post-increment of promoted operand is incorrect.)

PR c/49644
* typeck.c (cp_build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
one non-complex and one complex argument, call save_expr on both
operands.

* g++.dg/torture/pr49644.C: New test.

From-SVN: r176006
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr49644.C [new file with mode: 0644]