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 Regression] post-increment of promoted operand is incorrect.
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 5 Jul 2011 15:42:02 +0000
- Subject: [Bug c/49644] [4.5/4.6 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
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Known to work| |4.4.6
Keywords| |wrong-code
Last reconfirmed| |2011.07.05 15:41:41
CC| |jsm28 at gcc dot gnu.org
Ever Confirmed|0 |1
Summary|[ 4.5/4.6 Regression ] |[4.5/4.6 Regression]
|post-increment of promoted |post-increment of promoted
|to complex operand is |operand is incorrect.
|incorrect. |
Target Milestone|--- |4.5.4
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-07-05 15:41:41 UTC ---
The frontend generates
*c++ = COMPLEX_EXPR <*d++ * REALPART_EXPR <SAVE_EXPR <s>>, *d++ *
IMAGPART_EXPR <SAVE_EXPR <s>>>;
and thus increments d twice.