Bug 14423 – struct destructors not finalized for AA values

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-04-07T17:32:00Z
Last change time
2017-07-19T17:41:22Z
Keywords
pull
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2015-04-07T17:32:45Z
Since 2.067.0 struct allocated on the heap are finalized. This doesn't work for struct values of associative arrays. From my undestanding we'd need to construct a synthetic TypeInfo to make this work, because what gets allocated is a "struct" consisting of the hash, the key, and the value.
Comment #1 by r.sagitario — 2015-04-12T13:17:45Z
Comment #2 by github-bugzilla — 2015-04-17T14:58:26Z
Commit pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/cfcf7480b2faea0af9ab6ddba8e3b0d9f05c4415 Merge pull request #1212 from rainers/aa_entry_typeinfo fix Issue 14423 - struct destructors not finalized for AA values
Comment #3 by github-bugzilla — 2015-06-17T21:02:22Z
Comment #4 by github-bugzilla — 2017-07-19T17:41:22Z
Commit pushed to dmd-cxx at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/cfcf7480b2faea0af9ab6ddba8e3b0d9f05c4415 Merge pull request #1212 from rainers/aa_entry_typeinfo