[Issue 7914] New: wrong AA insert evaluation order
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 15 06:52:12 PDT 2012
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: nobody at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 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: -------
More information about the Digitalmars-d-bugs
mailing list