http://d.puremagic.com/issues/show_bug.cgi?id=6329
Summary: Out of range exceptions not thrown in certain cases
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrej Mitrovic <[email protected]> 2011-07-15
16:43:59 PDT ---
import std.stdio;
import std.file;
void main()
{
foreach (string entry; dirEntries(".", SpanMode.shallow))
{
writeln(entry[0..1000]); // out of range
}
}
DMD 2.053:
D:\>dmd test.d && test.exe
core.exception.RangeError@test(8): Range violation
DMD 2.054:
D:\>dmd test.d && test.exe
D:\>
Wheres the range error??
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------