[Issue 13569] New: Inconsistent integer divide by zero behavior and spec

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Oct 3 07:21:45 PDT 2014


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 at puremagic.com
          Reporter: monarchdodra at 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

--


More information about the Digitalmars-d-bugs mailing list