This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17095] ++ opertator and + operator is not working together.
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Aug 2004 08:01:09 -0000
- Subject: [Bug c/17095] ++ opertator and + operator is not working together.
- References: <20040819070031.17095.asokumar@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-19 08:01 -------
This is not a bug in the compiler, but in your code.
Your code triggers undefined behavior because there's no sequence
point in "x=y++ + x++". An even shorter example would be "x=x++".
*** This bug has been marked as a duplicate of 11751 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17095