Related to bug 7664 void main() { enum N = 4; char[] A = "hello".dup; uint[char[N]] dict; dict[*cast(immutable char[4]*)(A[0 .. N].ptr)] = 0; // OK dict[A[0 .. N]] = 0; // line 6, error } DMD 2.059head gives: test.d(6): Error: cannot implicitly convert expression (A[0u..4u]) of type char[] to char[4u]