[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with "-O -release"

2021-11-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11461 moonlightsenti...@disroot.org changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with "-O -release"

2016-02-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11461 naptime changed: What|Removed |Added CC|

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with "-O -release"

2016-02-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11461 Richard Cattermole changed: What|Removed |Added CC|

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2014-03-23 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 --- Comment #14 from Rainer Schuetze r.sagita...@gmx.de 2014-03-23 02:32:33 PDT --- I agree, it seems the better workaround. Clever compilers might notice that the passed parameter introduces no sideeffects and might infer strong purity,

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2014-03-23 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 Rainer Schuetze r.sagita...@gmx.de changed: What|Removed |Added Keywords||pull ---

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2014-03-23 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 --- Comment #16 from github-bugzi...@puremagic.com 2014-03-23 18:11:42 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/druntime

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2014-03-22 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 Rainer Schuetze r.sagita...@gmx.de changed: What|Removed |Added CC|

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2014-03-22 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2014-03-22 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 --- Comment #13 from monarchdo...@gmail.com 2014-03-22 14:59:11 PDT --- Maybe the problem can be worked around by making the function(s) *weakly* pure? (In reply to comment #11) (In reply to comment #7) Commit pushed to master at

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2013-11-15 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 --- Comment #3 from Martin Nowak c...@dawg.eu 2013-11-15 00:09:19 PST --- Interesting btw, such a function will either never or always throw an Error. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ---

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2013-11-15 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 monarchdo...@gmail.com changed: What|Removed |Added CC||monarchdo...@gmail.com ---

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2013-11-15 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 --- Comment #5 from Martin Nowak c...@dawg.eu 2013-11-15 01:35:56 PST --- (In reply to comment #3) Interesting btw, such a function will either never or always throw an Error. The fix is fairly simple, we need a way to annotate noreturn

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2013-11-15 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 --- Comment #6 from github-bugzi...@puremagic.com 2013-11-15 03:57:30 PST --- Commit pushed to master at https://github.com/D-Programming-Language/druntime

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2013-11-15 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 --- Comment #7 from github-bugzi...@puremagic.com 2013-11-15 10:33:56 PST --- Commit pushed to master at https://github.com/D-Programming-Language/druntime

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2013-11-15 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 Temtaime temta...@gmail.com changed: What|Removed |Added CC||temta...@gmail.com ---

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2013-11-15 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 --- Comment #9 from monarchdo...@gmail.com 2013-11-15 11:53:06 PST --- (In reply to comment #8) Hi, guys. Maybe i'm too stupid, but how nothrow function can throw ? D defines both Exception and Error, which derive from Throwable.

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2013-11-15 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 --- Comment #10 from Temtaime temta...@gmail.com 2013-11-15 12:33:55 PST --- Clear. Thanks very much for explanation. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2013-11-14 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu --- Comment

[Issue 11461] `Error`s are not thrown as `pure nothrow` functions are optimized out with -O -release

2013-11-14 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11461 --- Comment #2 from Denis Shelomovskij verylonglogin@gmail.com 2013-11-15 09:26:02 MSK --- (In reply to comment #1) Well, if a function has no side effect and does not produce a result or the result isn't used, there is no point in