[Issue 4835] DMD should warn about integer overflow in computed constant
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 28 00:39:07 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4835
--- Comment #16 from Walter Bright <bugzilla at digitalmars.com> 2013-03-28 00:39:03 PDT ---
(In reply to comment #15)
> Walter, what do you mean, screw? Is that a limitation of the dmd backend, or
> are you arguing that it is problematic in general? LLVM implements it, as
> bearophile points out...
Consider all the addressing modes used - they are all adds, with no overflow
checks. Secondly, they all rely on wraparound (overflow) arithmetic, after all,
that is how subtraction is done.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list