Thread overview
[Issue 13569] Inconsistent integer divide by zero behavior and spec
Oct 04, 2014
David Nadlinger
Nov 09, 2014
Stewart Gordon
Nov 11, 2014
yebblies
Nov 11, 2014
David Nadlinger
Aug 09, 2020
Walter Bright
Aug 10, 2020
Dlang Bot
Aug 10, 2020
Walter Bright
Aug 13, 2020
Dlang Bot
October 04, 2014
https://issues.dlang.org/show_bug.cgi?id=13569

David Nadlinger <code@klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@klickverbot.at

--- Comment #1 from David Nadlinger <code@klickverbot.at> ---
More or less related note: This will be hard to implement correctly on LLVM and probably also GCC (http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-April/060930.html).

--
November 09, 2014
https://issues.dlang.org/show_bug.cgi?id=13569

Stewart Gordon <smjg@iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |smjg@iname.com

--
November 11, 2014
https://issues.dlang.org/show_bug.cgi?id=13569

yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #2 from yebblies <yebblies@gmail.com> ---


*** This issue has been marked as a duplicate of issue 5908 ***

--
November 11, 2014
https://issues.dlang.org/show_bug.cgi?id=13569

David Nadlinger <code@klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #3 from David Nadlinger <code@klickverbot.at> ---
Doesn't seem to be a duplicate - at least going by the title, the other issue is specifically about the optimizer for compile-time known divisors. This is about runtime behavior.

--
August 09, 2020
https://issues.dlang.org/show_bug.cgi?id=13569

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #4 from Walter Bright <bugzilla@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.

--
August 10, 2020
https://issues.dlang.org/show_bug.cgi?id=13569

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dlang.org pull request #2842 "fix Issue 13569 - Inconsistent integer divide by zero behavior and spec" fixing this issue:

- fix Issue 13569 - Inconsistent integer divide by zero behavior and spec

https://github.com/dlang/dlang.org/pull/2842

--
August 10, 2020
https://issues.dlang.org/show_bug.cgi?id=13569

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|wrong-code                  |spec
          Component|dmd                         |dlang.org

--
August 13, 2020
https://issues.dlang.org/show_bug.cgi?id=13569

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dlang.org pull request #2842 "fix Issue 13569 - Inconsistent integer divide by zero behavior and spec" was merged into master:

- 406860163074ecf603b13c37005c30e7e32898be by Walter Bright:
  fix Issue 13569 - Inconsistent integer divide by zero behavior and spec

https://github.com/dlang/dlang.org/pull/2842

--