[Issue 7306] New: Access violation with .byValue of an empty associative array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 17 16:57:37 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7306
Summary: Access violation with .byValue of an empty associative
array
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: druntime
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2012-01-17 16:57:36 PST ---
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;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list