D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3839 - std.range.iota cannot take 'long' arguments.
Summary: std.range.iota cannot take 'long' arguments.
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-21 03:06 UTC by kennytm
Modified: 2010-06-23 08:51 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kennytm 2010-02-21 03:06:41 UTC
import std.range;
void main() {
   iota(1L, 10L);
}

Expected:
  Compile successfully.

Actually happening:
  Compile error with

  /usr/include/phobos/std/range.d(2158): Error: cannot implicitly convert expression (aBitAboveCount) of type long to uint
Comment 1 kennytm 2010-06-22 23:31:59 UTC
As of Phobos r1686 the code still cannot compile correctly. The new error is

    /usr/include/phobos/std/range.d(2161): Error: cannot implicitly convert expression ((this.pastLast - this.current) / cast(long)this.step) of type long to uint
Comment 2 Andrei Alexandrescu 2010-06-23 08:51:51 UTC
Fixed in r1690: http://www.dsource.org/projects/phobos/changeset/1690