[ub] A proposal to define signed overflow submitted?
Hubert Tong
hubert.reinterpretcast at gmail.com
Fri Feb 16 00:51:54 CET 2018
On Thu, Feb 15, 2018 at 6:44 PM, David Vandevoorde <daveed at edg.com> wrote:
>
>
> > On Feb 15, 2018, at 5:14 PM, Myria <myriachan at gmail.com> wrote:
> >
> > I'm personally on the side of defining signed overflow as wrapping,
> > but compiler people do have a point that it would inhibit
> > optimizations in certain cases involving signed integers.
>
> My understanding is that it kills a significant optimization opportunity
> (that is currently taken advantage of by compilers).
>
I also believe that it makes it harder for tooling to flag unintentional
signed overflow.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open-std.org/pipermail/ub/attachments/20180215/41a26ab4/attachment.html
More information about the ub
mailing list