[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

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 12 11:24:00 GMT 2012


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



More information about the Gcc-bugs mailing list