[Issue 12041] No file+line and strange diagnostic when instantiating WhiteHole

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 30 02:03:14 PST 2014


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|DMD                         |Phobos


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-01-30 02:03:09 PST ---
Oh nevermind, it's actually an internal pragma emitted from:

/// ditto
template generateAssertTrap(C, func.../+[BUG 4217]+/)
{
    static if (functionAttributes!(func) & FunctionAttribute.nothrow_) //XXX
    {
        pragma(msg, "Warning: WhiteHole!(", C, ") used assert(0) instead ",
                "of Error for the auto-implemented nothrow function ",
                C, ".", __traits(identifier, func));
        enum string generateAssertTrap =
            `assert(0, "` ~ C.stringof ~ "." ~ __traits(identifier, func)
                    ~ ` is not implemented");`;
    }
    else
        enum string generateAssertTrap =
            `throw new NotImplementedError("` ~ C.stringof ~ "."
                    ~ __traits(identifier, func) ~ `");`;
}

However I still don't understand the diagnostic. I'll change this to be a
library issue.

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