D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4693 - std.range.iota fails with long type
Summary: std.range.iota fails with long type
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-20 14:34 UTC by Max Klyga
Modified: 2010-08-21 02:40 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 Max Klyga 2010-08-20 14:34:34 UTC
import std.range;
 
void main() {
    iota(1, 2_147_483_648);
}

outputs:
src/phobos/std/range.d(2154): Error: cannot implicitly convert expression (aBitAboveCount) of type long to uint
Comment 1 David Simcha 2010-08-20 17:28:17 UTC
I can't reproduce this on the current SVN version of Phobos.  Iota has been majorly debugged lately.  What version of DMD/Phobos are you using?
Comment 2 Max Klyga 2010-08-21 02:40:59 UTC
update to dmd 2.028 fixes this bug.