[Issue 4835] DMD should warn about integer overflow in computed constant

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 27 04:00:43 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=4835



--- Comment #14 from bearophile_hugs at eml.cc 2013-03-27 04:00:40 PDT ---
(In reply to comment #11)
> While I disagree with bearophile about doing such checks at runtime, due to the
> performance cost,

A feature of LLVM 3.3, it seems those costs are not too much large for C
language:

http://clang.llvm.org/docs/UsersManual.html#controlling-code-generation

See:
-fsanitize=signed-integer-overflow
-fsanitize=integer

More info:
http://embed.cs.utah.edu/ioc/

-- 
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