https://issues.dlang.org/show_bug.cgi?id=15699
Issue ID: 15699
Summary: Array length expansion should consider elements'
copy-ability
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: accepts-invalid
Severity: major
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
From: https://issues.dlang.org/show_bug.cgi?id=15662#c4
Increasing array length may cause GC allocation with copy elements when the
original capacity is not enough.
By fixing issue 10115, there's already a check for disabled default
constructor, but not for disabled postblit. It's one another hole of semantics.
--