Comment #0 by bearophile_hugs — 2010-04-02T14:48:31Z
(Not tested with the latest bug fixes, so this can be already fixed)
struct Foo {
int[1] a;
}
int bar() {
Foo f;
f.a[0] = 1;
return 0;
}
enum int _ = bar();
void main() {}
dmd 2.042 gives:
test.d(6): Error: Index assignment (f.a[0u]) = 1 is not yet supported in CTFE