[Issue 15699] New: Array length expansion should consider elements' copy-ability
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Feb 18 04:18:08 PST 2016
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: nobody at puremagic.com
Reporter: k.hara.pg at gmail.com
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.
--
More information about the Digitalmars-d-bugs
mailing list