digitalmars.D.bugs - [Issue 13569] New: Inconsistent integer divide by zero behavior and
- via Digitalmars-d-bugs (20/20) Oct 03 2014 https://issues.dlang.org/show_bug.cgi?id=13569
https://issues.dlang.org/show_bug.cgi?id=13569 Issue ID: 13569 Summary: Inconsistent integer divide by zero behavior and spec Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: monarchdodra gmail.com From: http://forum.dlang.org/thread/pcvahdmzurxleawafjqs forum.dlang.org With linux, integer division by zero results in a core dump. On windows, it results in an Error: object.Error (0): Integer Division by 0 The spec says an Exception gets thrown. http://dlang.org/expression#MulExpression --
Oct 03 2014