https://issues.dlang.org/show_bug.cgi?id=14192 --- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> --- Note, the unittest is incidental, it happens with just: void main() { shared int[int] aa; aa[1] = 1; } --