[Issue 13827] Internal Compiler Error: null field
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Dec 7 04:53:43 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13827
--- Comment #1 from Temtaime <temtaime at gmail.com> ---
Reduced more:
struct Matrix(T, uint N) {
private static defaultMatrix() {
T arr[N];
return arr;
}
union {
T[N] A = defaultMatrix;
T[N] flat;
}
this(A...)(auto ref in A args) {
uint k;
foreach(ref v; args)
flat[k++] = cast(T)v;
}
}
enum S = Matrix!(int, 3)(1, 2, 3);
--
More information about the Digitalmars-d-bugs
mailing list