http://d.puremagic.com/issues/show_bug.cgi?id=7914
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
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 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);
}
CODE
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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------