Summary: A problem with iota() using size_t
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from 2011-06-29 13:33:50 PDT ---
With DMD 2.053 this apparently goes in infinite loop:

import std.range;
void main() {
    string s;
    foreach (i; iota(0, s.length, 3)) {}

What I expect: the foreach loop to loop zero times instead.

See also bug 4603

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

Reply via email to