Bug 7306 – Access violation with .byValue of an empty associative array

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-01-17T16:57:00Z
Last change time
2012-01-17T20:08:08Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-01-17T16:57:36Z
With DMD 2.058head this program gives a Access Violation, but I think this "vals" should just be an empty range: void main() { int[int] aa; auto vals = aa.byValue; auto ks = aa.byKey; }
Comment #1 by andrei — 2012-01-17T20:08:08Z