auto foo = new float[10]; auto bar = new int[10]; assert(bar.capacity == 15); assert(foo.capacity == 0, "This should be 15"); assert(foo.capacity == bar.capacity); // fails
Pull request: https://github.com/D-Programming-Language/druntime/pull/153
Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/8dbdbf8d7ad5bee7526d0fac972c47f15afa2713 This fixes Issue 7523 https://github.com/D-Programming-Language/druntime/commit/0d0c4e3d81b4cea8e10dda2bd3a7b9a9c933f5ca Merge pull request #153 from sandford/Issue_7523 Issue 7523 - Incorrect capacity for new T[] with non-zero T.init.