https://bugs.llvm.org/show_bug.cgi?id=35087
Eli Friedman <efrie...@codeaurora.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
CC| |efrie...@codeaurora.org
--- Comment #2 from Eli Friedman <efrie...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs