This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/54907] post increasing a value pointed by p in subexpression of an expression modifying p saves the increased value in the wrong place
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Oct 2012 11:23:52 +0000
- Subject: [Bug c/54907] post increasing a value pointed by p in subexpression of an expression modifying p saves the increased value in the wrong place
- Auto-submitted: auto-generated
- References: <bug-54907-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54907
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-12 11:23:52 UTC ---
On the RHS of the assignment *p is modified, not p
The difference in behaviour between gcc and g++ is probably due to
http://gcc.gnu.org/viewcvs?view=revision&revision=176072