http://d.puremagic.com/issues/show_bug.cgi?id=10356
--- Comment #3 from John Colvin <[email protected]> 2013-06-18 15:18:54 BST --- OK. A minimized test case: struct Test { byte val; //can be anything string[] key; Test opAssign(Test rhs) //if void, no error. { //any attempt to read key here causes a segfault or OutOfMemoryError. key ~= rhs.key; return this; } } void main() { //only fails using associative array, normal assignment is fine. Test[string] data; data["test"] = Test(); } In the meantime, use the signature "void opAssign(Test rhs)" and you'll (probably) be ok. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
