Bug 4693 – std.range.iota fails with long type

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-08-20T14:34:00Z
Last change time
2010-08-21T02:40:59Z
Assigned to
nobody
Creator
necroment

Comments

Comment #0 by necroment — 2010-08-20T14:34:34Z
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 by dsimcha — 2010-08-20T17:28:17Z
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 by necroment — 2010-08-21T02:40:59Z
update to dmd 2.028 fixes this bug.