[Issue 6446] Problem with iota(long)

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Nov 3 17:05:15 PST 2014


https://issues.dlang.org/show_bug.cgi?id=6446

--- Comment #6 from bearophile_hugs at eml.cc ---
(In reply to hsteoh from comment #5)
> Unable to reproduce on git HEAD, Linux/64. Does this bug still happen? Can
> anyone else try to reproduce it (on Windows)?

On Windows32 now this gives:


void main() {
    import std.range: iota;
    import std.array: array;
    auto a = 1L.iota.array;
}



...\dmd2\src\phobos\std\array.d(47,43): Error: function
std.array.array!(Result).array.trustedAllocateArray (uint n) is not callable
using argument types (ulong)
test.d(4,21): Error: template instance std.array.array!(Result) error
instantiating

--


More information about the Digitalmars-d-bugs mailing list