Summary: wrong AA insert evaluation order
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-04-15 06:53:00 PDT ---
cat > bug.d << CODE
void main()
    size_t[ubyte] aa;
    aa[0] = aa.length;
    assert(aa[0] == 0);

dmd -run bug

aa.length is evaluated after a new entry was added to the AA.
A similar test for arrays works correctly.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to