[Issue 14832] New: iota(UL) + array doesn't work
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jul 26 08:15:04 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14832
Issue ID: 14832
Summary: iota(UL) + array doesn't work
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: bearophile_hugs at eml.cc
void main() {
import std.array: array;
import std.range: iota;
iota(10UL).array;
}
dmd v2.068.0-b1 gives (32 bit system):
..\src\phobos\std\array.d(518): Error: static assert "Argument types in
(ulong) are not all convertible to size_t: (ulong)"
..\src\phobos\std\array.d(111): instantiated from here:
uninitializedArray!(ulong[], ulong)
test.d(4): instantiated from here: array!(Result)
--
More information about the Digitalmars-d-bugs
mailing list