[LLVMbugs] [Bug 18644] Problem with tenary operator and errno: although condition is true it evaluates the else part

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 28 11:23:42 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18644

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rnk at google.com
         Resolution|---                         |INVALID

--- Comment #5 from Reid Kleckner <rnk at google.com> ---
Does errmsg() call anything that clobbers errno?  This is probably clang's
left-to-right order of evaluation causing you to evaluate that first (gcc uses
right-to-left evaluation) and clobbering errno.

Speculatively closing as invalid, please reopen if hoisting the load from errno
fails to solve the problem.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140128/9ce36ef7/attachment.html>


More information about the llvm-bugs mailing list