[Issue 5734] New: foreach on enum associative array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 14 10:53:00 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5734
Summary: foreach on enum associative array
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2011-03-14 10:49:50 PDT ---
A problem found by Nebster.
This D2 code:
enum int[int] aa = [0: 1];
void main() {
foreach (k; aa) {}
foreach (k; aa.keys) {}
foreach (k; aa.values) {}
foreach (k; aa.byKey()) {}
foreach (k; aa.byValue()) {}
}
DMD 2.052 gives:
Internal error: e2ir.c 4835
--
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