int bar()
{
int [] x = [0, 1, 2];
x[x.length-1] = 5; // works
x[$-1] = 5; // fails
return 0;
}
int z = bar();
---
ctfe.d(6): Error: variable __dollar is used before initialization
ctfe.d(10): Error: cannot evaluate bar() at compile time
I have a patch for this, together with 2569 and 1948.