October 03, 2014 [Issue 13569] New: Inconsistent integer divide by zero behavior and spec | ||||
---|---|---|---|---|
| ||||
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 -- |
Copyright © 1999-2021 by the D Language Foundation