Comment #0 by bearophile_hugs — 2010-03-13T17:16:12Z
This code crashes dmd:
import std.conv: to;
struct Int { int x; }
void main() {
Int i = to!Int(1);
}
Comment #1 by bearophile_hugs — 2010-05-22T13:27:49Z
In DMD 2.046 the situation is improved, it doesn't cause an ICE anymore.
It generates an error like:
conv.d(699): Error: cannot create associative array V2[K2]