Thread overview
[Issue 7523] New: Incorrect capacity for new T[] with non-zero T.init.
Feb 16, 2012
Rob Jacques
Feb 16, 2012
Rob Jacques
Feb 27, 2012
Walter Bright
February 16, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7523

           Summary: Incorrect capacity for new T[] with non-zero T.init.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: pull
          Severity: regression
          Priority: P2
         Component: druntime
        AssignedTo: nobody@puremagic.com
        ReportedBy: sandford@jhu.edu


--- Comment #0 from Rob Jacques <sandford@jhu.edu> 2012-02-16 12:04:41 PST ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 16, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7523



--- Comment #1 from Rob Jacques <sandford@jhu.edu> 2012-02-16 12:10:20 PST ---
Pull request:

https://github.com/D-Programming-Language/druntime/pull/153

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 16, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7523



--- Comment #2 from github-bugzilla@puremagic.com 2012-02-16 12:31:22 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 27, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7523


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------