Comment #0 by bearophile_hugs — 2014-09-23T10:04:51Z
int n = 2;
void main() {
int[n][2][2][2] a;
}
dmd 2.067alpha gives:
test.d(3,21): Error: static variable n cannot be read at compile time
test.d(3,21): Error: static variable n cannot be read at compile time
test.d(3,21): Error: static variable n cannot be read at compile time
test.d(3,21): Error: static variable n cannot be read at compile time
test.d(3,21): Error: static variable n cannot be read at compile time
test.d(3,21): Error: static variable n cannot be read at compile time
test.d(3,21): Error: static variable n cannot be read at compile time
test.d(3,21): Error: static variable n cannot be read at compile time
test.d(3,21): Error: static variable n cannot be read at compile time
test.d(3,21): Error: static variable n cannot be read at compile time
test.d(3,21): Error: static variable n cannot be read at compile time
test.d(3,21): Error: static variable n cannot be read at compile time
test.d(3,21): Error: static variable n cannot be read at compile time
Comment #1 by robert.schadek — 2024-12-13T18:28:40Z