www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5235] New: new dynamic array results in incorrect size

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5235

           Summary: new dynamic array results in incorrect size
           Product: D
           Version: D1
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: strtr despam.it


--- Comment #0 from strtr despam.it 2010-11-18 10:09:41 PST ---
int[][] arr;
arr = new int[][](2,5);// 5 is ignored!
writefln(arr);

[[0,0],[0,0]]

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 18 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5235


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
         Resolution|                            |FIXED


--- Comment #1 from yebblies <yebblies gmail.com> 2011-06-15 20:28:22 PDT ---
Works dmd 1.068 & 2.053

Prints:
[[0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]

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