C++ Logo

SG12

Advanced search

Subject: Re: [ub] A proposal to define signed overflow submitted?
From: Hyman Rosen (hyman.rosen_at_[hidden])
Date: 2018-03-14 16:52:21


On Wed, Mar 14, 2018 at 5:37 PM, Aaron Ballman <aaron_at_[hidden]>
wrote:

> On Wed, Mar 14, 2018 at 5:30 PM, Hyman Rosen <hyman.rosen_at_[hidden]>
> wrote:
> > No behavior should ever be designated undefined in order to allow
> > optimizers to generate code by assuming that the behavior never occurs.
>
> Infinite loops are a counter-example to this assertion.

 How so?



SG12 list run by herb.sutter at gmail.com