← Back to index
|
Original Bugzilla link
Bug 7665 – Problem with fixed-sized associative mutable array key assignment
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-03-07T11:10:00Z
Last change time
2013-11-26T20:40:08Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2012-03-07T11:10:20Z
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]