www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: callumenator gmail.com


--- Comment #0 from callumenator 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: -------
Jan 27 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9411


callumenator gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


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