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

           Summary: ICE on invalid compile-time class instantiation
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-06-03 16:38:30 PDT ---
DMD 2.063:

class D{
    int x;
    D d = {auto x = new D(); return x;}();
}

enum x = new D;


/d825/f688.d(3): Error: delegate f688.D.__lambda1 function literals cannot be
class members
/d825/f688.d(3): Error: delegate f688.D.__lambda1 circular dependency.
Functions cannot be interpreted while being compiled
/d825/f688.d(3): called from here: (*_error_()
{
auto x = new D;
return x;
}
)()
dmd: ctfeexpr.c:354: Expression* copyLiteral(Expression*): Assertion `0'
failed.

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

Reply via email to