This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/49644] [4.5/4.6/4.7 Regression] post-increment of promoted operand is incorrect.
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 7 Jul 2011 19:42:44 +0000
- Subject: [Bug c/49644] [4.5/4.6/4.7 Regression] post-increment of promoted operand is incorrect.
- Auto-submitted: auto-generated
- References: <bug-49644-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49644
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-07 19:41:57 UTC ---
Author: jakub
Date: Thu Jul 7 19:41:55 2011
New Revision: 176006
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176006
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr49644.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog