← Back to index
|
Original Bugzilla link
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
https://github.com/D-Programming-Language/dmd/commit/eec4830dff9fa5653fb5e261660ea5596269085a
https://github.com/D-Programming-Language/dmd/commit/31bbbb39b3f82624ee718a5c64d5f83f8ba3383b