www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15699] New: Array length expansion should consider elements'

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 puremagic.com
          Reporter: k.hara.pg 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.

--
Feb 18 2016