[Bug c/49644] [4.5/4.6/4.7 Regression] post-increment of promoted operand is incorrect.

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 7 19:14:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49644

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-07 19:14:41 UTC ---
Author: jakub
Date: Thu Jul  7 19:14:38 2011
New Revision: 176005

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176005
Log:
    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.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/gcc.c-torture/execute/pr49644.c
Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/c-typeck.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list