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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 14 18:36:55 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11461


Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu


--- Comment #1 from Martin Nowak <code at dawg.eu> 2013-11-14 18:36:52 PST ---
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 calling it. It's pretty harsh to demand
that the compiler always calls such functions only to support the minor
noreturn use-case.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list