[LLVMbugs] [Bug 2959] Miscompilation of expression with multiple side-effects
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Mon Oct 27 10:21:25 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2959
Dale Johannesen <dalej at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dalej at apple.com
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Dale Johannesen <dalej at apple.com> 2008-10-27 12:21:23 ---
First, b in uninitialized, so the program has undefined behavior. However,
initializing b to 0 does result in the behavior you describe (as it does with
gcc). Second, I think this behavior is valid; in C99, see 6.5p2 and p3, and
example 7 (p15) in 5.1.2.3.
--
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