This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/762
- To: chuchunxin at hotmail dot com, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Subject: Re: c/762
- From: neil at gcc dot gnu dot org
- Date: 9 Nov 2000 23:48:38 -0000
Synopsis: can not calculate x *=x++ correctly on GNU 2.8.1 in sparc-sun-solaris2.6 environment
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Thu Nov 9 15:48:38 2000
State-Changed-Why:
Not a bug; it is undefined behaviour.
>> what is the value of x?
Exactly! You might want to use x *= x or x = x * x + 1
depending upon what you're trying to do.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=762&database=gcc