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

--- Comment #0 from Andrej Mitrovic <> 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

Wheres the range error??

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to