Bug 5235 – new dynamic array results in incorrect size

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
Windows
Creation time
2010-11-18T10:09:00Z
Last change time
2011-06-15T20:28:22Z
Keywords
wrong-code
Assigned to
nobody
Creator
strtr

Comments

Comment #0 by strtr — 2010-11-18T10:09:41Z
int[][] arr; arr = new int[][](2,5);// 5 is ignored! writefln(arr); [[0,0],[0,0]]
Comment #1 by yebblies — 2011-06-15T20:28:22Z
Works dmd 1.068 & 2.053 Prints: [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]