Bug 6885 – [CTFE] wrong code with dynamically allocated 2D array

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-11-03T01:32:00Z
Last change time
2015-06-09T05:11:36Z
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2011-11-03T01:32:13Z
int bug6885() { auto array = new double[1][2]; array[1][0] = 6; array[0][0] = 1; assert(array[1][0]==6); return 1; } static assert(bug6885());
Comment #1 by bugzilla — 2011-11-03T16:01:44Z