C++ Logo

sg12

Advanced search

Re: [ub] A proposal to define signed overflow submitted?

From: Hubert Tong <hubert.reinterpretcast_at_[hidden]>
Date: Thu, 15 Feb 2018 18:51:54 -0500
On Thu, Feb 15, 2018 at 6:44 PM, David Vandevoorde <daveed_at_[hidden]> wrote:

>
>
> > On Feb 15, 2018, at 5:14 PM, Myria <myriachan_at_[hidden]> 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.

Received on 2018-02-16 00:51:56