[llvm-bugs] [Bug 35087] Compiler transforming loop into an infinite loop when optimizations are enabled after r316208

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 25 17:14:53 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=35087

Eli Friedman <efriedma at codeaurora.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED
                 CC|                            |efriedma at codeaurora.org

--- Comment #2 from Eli Friedman <efriedma at codeaurora.org> ---
> which is promoted to the next size up from `int` if it won't fit into an `int`.

There is no such promotion.  Integer promotion only affects expressions whose
type is narrower than "int".

See also [expr]p4: "If during the evaluation of an expression, the result is
not mathematically defined or not in the range of representable values for its
type, the behavior is undefined".

-- 
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/20171026/fdd8f9fc/attachment.html>


More information about the llvm-bugs mailing list