[LLVMbugs] [Bug 2959] Miscompilation of expression with multiple	side-effects
    bugzilla-daemon at cs.uiuc.edu 
    bugzilla-daemon at cs.uiuc.edu
       
    Tue Oct 28 06:56:40 PDT 2008
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=2959
Neil Booth <neil at daikokuya.co.uk> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID
--- Comment #7 from Neil Booth <neil at daikokuya.co.uk>  2008-10-28 08:56:39 ---
I apologise, I misread the code entirely.  It is indeed unspecified whether the
result is 1 or 2: it depends which operand is evaluated first.  I'd initially
misread it and thought it didn't matter.  In particular
  b++ + f()
is 0 + 1 if the "b++" is calculated before the f() call; it is  1 + 1 if the
"b++" is calculated after the f() call.
Sorry for the noise.
-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
    
    
More information about the llvm-bugs
mailing list