www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4693] New: std.range.iota fails with long type

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4693

           Summary: std.range.iota fails with long type
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: necroment gmail.com


--- Comment #0 from Max Klyga <necroment gmail.com> 2010-08-20 14:34:34 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4693


David Simcha <dsimcha yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dsimcha yahoo.com


--- Comment #1 from David Simcha <dsimcha yahoo.com> 2010-08-20 17:28:17 PDT ---
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?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4693


Max Klyga <necroment gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Max Klyga <necroment gmail.com> 2010-08-21 02:40:59 PDT ---
update to dmd 2.028 fixes this bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 21 2010