http://d.puremagic.com/issues/show_bug.cgi?id=4641
Summary: Associative arrays of structs with alias this broken.
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Pelle M�nsson <[email protected]> 2010-08-13 13:43:42
PDT ---
Code:
==========================================8<------------------------------------
struct S {
int i;
alias i this;
}
void main() {
S[int] ss;
ss[0] = S.init; // This line causes Range Violation.
}
------------------------------------>8==========================================
I am using DMD v2.048.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------