On 02/05/2018 04:21 PM, H. S. Teoh wrote:
On Mon, Feb 05, 2018 at 09:20:16PM +0000, Nick Sabalausky via Digitalmars-d 
wrote:
But still, I thought we had value range propagation rules to avoid
this sort of nonsense when possible (such as the example above)?

VRP doesn't help when the code doesn't have compile-time known values,
such as in the non-reduced code my example snippet was reduced from.


Right, it wouldn't always get rid of the message, but I would think it should when it's known the value cannot be -128, such as the specific example you posted.

Reply via email to