Signed integer overflow undefined behavior or not?

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 13 03:18:48 PST 2015


On Friday, 13 November 2015 at 06:00:08 UTC, Walter Bright wrote:
> It's worth checking how LDC and GDC deal with this deep in 
> their optimizer - is it considering it undefined behavior?

Signed types will wrap around correctly for LDC.

  — David


More information about the Digitalmars-d mailing list