← Back to index
|
Original Bugzilla link
Bug 1992 – Incorrect out-of-bounds error
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-04-13T19:17:00Z
Last change time
2015-06-09T01:14:35Z
Assigned to
nobody
Creator
bartosz
Comments
Comment #0
by bartosz — 2008-04-13T19:17:34Z
In the following program, dmd issues the error: test.d(7): Error: array index 0 is out of bounds [][0 .. 0] string foo (string [] list, string s) { if (list.length == 0) return "int x; "; else { return foo (list [1..$], list [0]); } } mixin (foo (["a", "b"], ""));
Comment #1
by yebblies — 2011-06-10T02:32:10Z
This compiles without error now. (dmd2.053)