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

           Summary: [ICE] Returning an enum with no value from a function
                    fails
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-12-11 19:06:48 PST ---
auto returnEnum()
{
        //Fails with "dmd: mtype.c:7620: virtual Type* TypeEnum::nextOf():
Assertion `sym->scope' failed."
    //enum n;
        enum n = 0; //Ok
    return n;
}

void main()
{
    assert(returnEnum() == 0);
}

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

Reply via email to