Bug 9023 – CTFE: cannot use ~= on an empty AA.

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-11-14T01:33:00Z
Last change time
2015-06-17T21:03:09Z
Keywords
CTFE, pull
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2012-11-14T01:33:48Z
Reported in bug 4019 comment 3 (Mike van Dongen) ---- enum auto i = test(); int test() { string[][string] s; s["a"] ~= "anything"; return 6; } Error: cannot index null array s
Comment #1 by k.hara.pg — 2015-01-24T18:25:48Z
Comment #2 by github-bugzilla — 2015-03-30T06:19:56Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1e25862da6b588794165ced4b89f72870fa660d7 fix Issue 9023 - CTFE: cannot use ~= on an empty AA. https://github.com/D-Programming-Language/dmd/commit/7d9a3e2e7ebdfd1ec09ebfb5cfbd2e850c70040d Merge pull request #4331 from 9rnsr/fix9023 Issue 9023 - CTFE: cannot use ~= on an empty AA.
Comment #3 by github-bugzilla — 2015-06-17T21:03:09Z