[Issue 8066] New: ICE on missing return statement if invariant is present

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 8 05:06:56 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8066

           Summary: ICE on missing return statement if invariant is
                    present
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: mrmocool at gmx.de


--- Comment #0 from Trass3r <mrmocool at gmx.de> 2012-05-08 14:08:16 CEST ---
struct CLCommandQueue
{
    invariant() {}

//private:
    int enqueueNativeKernel()
    {
        assert(0, "implement me");
    }
}

$ dmd -c commandqueue.d
dmd: func.c:1557: virtual void FuncDeclaration::semantic3(Scope *): Assertion
`vresult' failed.

Works without the invariant or with the private.

Might have to do with the fix for
http://d.puremagic.com/issues/show_bug.cgi?id=5039, but that's just a guess.

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


More information about the Digitalmars-d-bugs mailing list