target/10702: incorrect code generated on Sparc for expression combining increment and decrement of same variable

ehrhardt@mathematik.uni-ulm.de ehrhardt@mathematik.uni-ulm.de
Fri May 9 12:58:00 GMT 2003


Synopsis: incorrect code generated on Sparc for expression combining increment and decrement of same variable

State-Changed-From-To: open->closed
State-Changed-By: cae
State-Changed-When: Fri May  9 12:49:11 2003
State-Changed-Why:
    Not a bug. You're invoking undefined behaviour. There is no
    sequence point beteween the two postfix operations on x, hence
    there is no guarantee that the result of the first operation is written
    back into x before the second operation.
    
        regards    Christian

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10702



More information about the Gcc-bugs mailing list