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

           Summary: e2ir assertion on AALiteral call expression
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: d...@dawgfoto.de


--- Comment #0 from d...@dawgfoto.de 2011-03-01 09:07:11 PST ---
void main() {
  enum aa = [1 : 2, 2 : 4];
  auto e = aa.length();
}

--


This asserts in AssocArrayLiteralExp::toElem(IRState *irs)

        Type *t = type->toBasetype()->mutableOf();
        assert(t->ty == Taarray);

But the type of aa is AssociativeArray!(int,int), so t->ty is Tstruct.

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

Reply via email to