Summary: Cannot call iota() on long with step
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: Phobos

--- Comment #0 from 2011-04-23 08:15:22 PDT ---
(This is a problem on Phobos git master introduced since commit 3e6679b2. The
code works fine on 2.052)

Test case:

import std.range;
void main() {
    iota(1L, 10L);     // OK
    iota(1L, 10L, 3);  // Error

Currently it shows the error

/usr/include/phobos/std/range.d(3902): Error: cannot implicitly convert
expression (unsigned((this.pastLast - this.current) / cast(long)this.step)) of
type ulong to uint
x.d(4): Error: template instance std.range.iota!(long,long,int) error

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

Reply via email to