Subject: Re: [boost] Current Guidance on Compiler Warnings?
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2018-11-27 20:32:09
On Tue, Nov 27, 2018 at 12:26 PM Stephan T. Lavavej via Boost <
> > Interestingly [or maybe not so interestingly] MSVC (15.8/7) is the only
> > available there [on godbolt] that does NOT produce more optimal code
> > signed integer case (at any optimization level) (STL are you listening).
> I am listening, but I am not a compiler backend dev. :-) I recommend
filing a bug about the missed optimization opportunity through the C++ tab
of Developer Community at
I would have thought MSVC doesn't do this optimization so it doesn't break
existing code which assumes int overflow wraps around. Microsoft is usually
very careful with this, and for good reasons.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk