Bug 15699 – Array length expansion should consider elements' copy-ability

Status
NEW
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-02-18T12:18:08Z
Last change time
2024-12-13T18:46:57Z
Keywords
accepts-invalid
Assigned to
No Owner
Creator
Kenji Hara
See also
https://issues.dlang.org/show_bug.cgi?id=15662
Moved to GitHub: dmd#19100 →

Comments

Comment #0 by k.hara.pg — 2016-02-18T12:18:08Z
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.
Comment #1 by robert.schadek — 2024-12-13T18:46:57Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19100 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB