Bug 9803 – minimallyInitializedArray fails past "1D" depth

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-23T15:16:00Z
Last change time
2015-06-09T05:15:21Z
Assigned to
monarchdodra
Creator
monarchdodra

Comments

Comment #0 by monarchdodra — 2013-03-23T15:16:12Z
Example: //---- alias T1 = int*[]; //1D alias T2 = int*[][]; //2D auto t1 = minimallyInitializedArray!T1(10); //Works auto t2 = minimallyInitializedArray!T2(10, 10); //Fails foreach (p; t1) assert(p is null); //OK foreach (arr; t2) foreach (p; arr) assert(p is null); //Fails //----
Comment #1 by monarchdodra — 2013-03-23T15:17:00Z
Comment #2 by monarchdodra — 2013-07-14T03:45:04Z
Comment #3 by andrej.mitrovich — 2013-10-23T17:18:56Z