This D2 code: import std.stdio: writeln; void main() { int[0] a; writeln(a); } dmd 2.043 shows: [...]\dmd\src\phobos\std\format.d(2040): Error: array index 0 is out of bounds obj[0 .. 0] [...]\dmd\src\phobos\std\format.d(2040): Error: array index 0 is out of bounds [0..0]
Fixed in svn r1546.
Reopened. Phobos needs to be debugged with warnings on. If I compile that program with: dmd -w test.d DMD 2.047 prints: ...\src\phobos\std\format.d(2040): Warning: statement is not reachable ...\src\phobos\std\format.d(2041): Warning: statement is not reachable
Okay, I fixed it in svn r1642.