On 21/01/2015 14:41, Markus Armbruster wrote: > I suspect we shift signed values all over the place, without regard for > signed overflow. Machines are fine with that, but some day some > compiler wiseguy may find a way to save a femtosecond or two for some > program that never does that, breaking programs that do it, and then > we'll be in trouble.
As I said before, if there was a way to save those femtoseconds, they would have already tried. More likely, the compiler people know they would become the main attractions at pitch and feather spectacles, so they're not going to treat that as undefined behavior. Paolo