Bug 7914 – wrong AA insert evaluation order

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-15T06:53:00Z
Last change time
2012-10-29T06:26:23Z
Keywords
wrong-code
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2012-04-15T06:53:00Z
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.
Comment #1 by yebblies — 2012-10-29T06:26:23Z
*** This issue has been marked as a duplicate of issue 3825 ***