[Issue 9411] New: Assigning to delegate, assertion failure on line 1702 in file 'cast.c'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 27 19:12:40 PST 2013


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

           Summary: Assigning to delegate, assertion failure on line 1702
                    in file 'cast.c'
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: callumenator at gmail.com


--- Comment #0 from callumenator at gmail.com 2013-01-27 19:12:38 PST ---
Compiling with 2.061 release. 

void main()
{
    int z;
    typeof((int a){return z;}) dg;
    dg = cast(typeof((int a){return z;})) (int a){return z;};
}

Assertion failure: 'e->type->nextOf()->covariant(t->nextOf()) == 1' on line
1702 in file 'cast.c'

If dg is made a function by removing reference to z, it compiles.

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