Thread overview
[Issue 5908] Optimizer generates wrong value with divide-by-zero.
Jul 24, 2014
yebblies
Jul 24, 2014
yebblies
Nov 11, 2014
yebblies
Nov 17, 2014
Leandro Lucarella
Jun 26, 2017
Vladimir Panteleev
July 21, 2014
https://issues.dlang.org/show_bug.cgi?id=5908

Domingo Alvarez Duarte <mingodad@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |EH, safe
                 CC|                            |mingodad@gmail.com

--- Comment #5 from Domingo Alvarez Duarte <mingodad@gmail.com> ---
Actually floating point exception doesn't seem to be trapped:

Floating point exception (core dumped)

--------
import std.stdio;

void func1()
{
    int x, z = 2/x;
}

void func2()
{
    try { func1(); }
    catch(Exception e) { writeln("catch %s", e.msg);}
    finally {writeln("finally: func2"); throw new Exception("on func2");}
}

void func3()
{
    func2();
}

void main()
{
    func3();
}
--------

--
July 24, 2014
https://issues.dlang.org/show_bug.cgi?id=5908

yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|EH, safe                    |
                 CC|                            |yebblies@gmail.com

--
July 24, 2014
https://issues.dlang.org/show_bug.cgi?id=5908

yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
           Assignee|nobody@puremagic.com        |yebblies@gmail.com

--- Comment #6 from yebblies <yebblies@gmail.com> ---
https://github.com/D-Programming-Language/dmd/pull/3810

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

yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra@gmail.com

--- Comment #7 from yebblies <yebblies@gmail.com> ---
*** Issue 13569 has been marked as a duplicate of this issue. ***

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

github-bugzilla@puremagic.com changed:

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

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

--- Comment #8 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/8a56471a2ba9f13b4cc966dafb78e5077af92513 Fix Issue 5908 - Optimizer generates wrong value with divide-by-zero.

Reinstate optimizer error for integer division by zero

https://github.com/D-Programming-Language/dmd/commit/ec66c97df4525b5578bc8601e06eae4ebe9f7ee6 Merge pull request #3810 from yebblies/issue5908

Issue 5908 - Optimizer generates wrong value with divide-by-zero.

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

Leandro Lucarella <leandro.lucarella@sociomantic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=13743

--
February 19, 2015
https://issues.dlang.org/show_bug.cgi?id=5908

--- Comment #9 from github-bugzilla@puremagic.com ---
Commit pushed to 2.067 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ec66c97df4525b5578bc8601e06eae4ebe9f7ee6 Merge pull request #3810 from yebblies/issue5908

--
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=5908

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|D1 & D2                     |D2

--
June 26, 2017
https://issues.dlang.org/show_bug.cgi?id=5908

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |public@dicebot.lv

--- Comment #10 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
*** Issue 13743 has been marked as a duplicate of this issue. ***

--