D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5272 - Postblit not called on copying due to array append
Summary: Postblit not called on copying due to array append
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: Steven Schveighoffer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-24 12:19 UTC by David Simcha
Modified: 2011-06-21 06:01 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description David Simcha 2010-11-24 12:19:31 UTC
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 Steven Schveighoffer 2011-06-17 05:51:37 UTC
https://github.com/D-Programming-Language/druntime/pull/29