[Issue 12041] Strange warning pragma when instantiating WhiteHole

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 30 02:44:29 PST 2014


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


Kenji Hara <k.hara.pg at gmail.com> changed:

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


--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2014-01-30 02:44:21 PST ---
(In reply to comment #1)
> However I still don't understand the diagnostic. I'll change this to be a
> library issue.

In old days, throwing Error from nothrow function had caused "function foo is
nothrow yet may throw" error. As a workaround, WhiteHole used assert(0) instead
throwing NotImplementedError for abstract nothrow functions.

It's also noted in BUGS section of WhiteHole.

BUGS:
  Nothrow functions cause program to abort in release mode because the trap is
  implemented with $(D assert(0)) for nothrow functions.

But today, the compiler/lamguage limitation is already removed. So we can just
remove the workaround code from WhileHole implementation.

Phobos fix:
https://github.com/D-Programming-Language/phobos/pull/1892

-- 
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