[Issue 5675] New: e2ir assertion on AALiteral call expression

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 1 09:10:01 PST 2011


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: nobody at puremagic.com
        ReportedBy: dawg at dawgfoto.de


--- Comment #0 from dawg at 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: -------


More information about the Digitalmars-d-bugs mailing list