]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/c-typeck.c
re PR c/49644 (post-increment of promoted operand is incorrect.)
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Jul 2011 19:11:27 +0000 (21:11 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 7 Jul 2011 19:11:27 +0000 (21:11 +0200)
commitc4603e7ce0b0e007db25abc234a85d1562a9c988
tree0b97ba80ee1dfb0fc4d489e1971200c80e0c2519
parent489319d5aa1448a8d9ce9062247c6c48f9cd745f
re PR c/49644 (post-increment of promoted operand is incorrect.)

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

* gcc.c-torture/execute/pr49644.c: New test.

From-SVN: r176004
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr49644.c [new file with mode: 0644]