[Issue 13569] Inconsistent integer divide by zero behavior and spec
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 9 10:47:12 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=13569
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> ---
With -O:
int test_int() {
int x;
return x/x;
}
long test_long() {
long x;
return x/x;
}
now gives a compile-time divide-by-zero error.
--
More information about the Digitalmars-d-bugs
mailing list