[Issue 2938] incorrect code generated for assignment to assoc array element
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 14 08:34:08 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2938
David Simcha <dsimcha at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dsimcha at yahoo.com
--- Comment #1 from David Simcha <dsimcha at yahoo.com> 2010-01-14 08:34:07 PST ---
Also happens when opAssign is overloaded:
struct Foo {
uint stuff;
void opAssign(Foo rhs) {
stuff = rhs.stuff;
}
}
void main() {
Foo[string] AA;
AA["bar"] = Foo.init; // Range violation.
}
--
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