This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c/762


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]