Bug 5272 – Postblit not called on copying due to array append

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-11-24T12:19:00Z
Last change time
2011-06-21T06:01:06Z
Assigned to
schveiguy
Creator
dsimcha

Comments

Comment #0 by dsimcha — 2010-11-24T12:19:31Z
I found this bug by reading the code in lifetime.d, not by a test case. Struct postblits are not called when an array is copied due to an append, and they should be, since there could still be references to the original array.
Comment #1 by schveiguy — 2011-06-17T05:51:37Z
Comment #2 by schveiguy — 2011-06-21T06:01:06Z