Hi folks,
I've played with the new GDC version today. Overall it seems solid, but
I've encountered some issues that are probably Phobos-related. Since
this is my first 64-bit D compiler, I wonder whether some parts of
Phobos might not yet be 64-bit ready.
Example 1:
// test_regex.d
import std.regex;
void main() {
auto r = regex("aeiou");
}
$ gdmd test_regex.d
/opt/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.5/../../../../
include/d2/4.4.5/std/regex.d:442:
Error: cannot implicitly convert expression (len2) of type immutable
(ulong) to uint
Example 2:
// test_iota.d
import std.range;
void main() {
auto r = iota(0, 10);
}
$ gdmd test_iota.d
/opt/usr/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.5/../../../../
include/d2/4.4.5/std/range.d:3728:
Error: cannot implicitly convert expression (cast(ulong)this.current +
cast(ulong)this.step * n) of type ulong to int
Do you think I should post these to the digitalmars bug tracker, or the
GDC bug tracker? Or should I just let the Phobos team work out the
64 bits issues generally, and then try again?
Best,
Graham