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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 30 02:01:49 PST 2014


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

           Summary: No file+line and strange diagnostic when instantiating
                    WhiteHole
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-01-30 02:01:44 PST ---
Phobos has been emitting this diagnostic lately, the reduced case is:

-----
import std.typecons;

interface I
{
    void bar() nothrow;
}

void main()
{
    new WhiteHole!I;
}
-----

$ dmd test.d
> Warning: WhiteHole!(I) used assert(0) instead of Error for the auto-implemented nothrow function I.bar

There is no file+line info, and I don't understand the diagnostic at all?

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