http://d.puremagic.com/issues/show_bug.cgi?id=6257
Kenji Hara k.hara...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution||DUPLICATE
--- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-05-10 19:52:21 PDT ---
The bug mechanism is:
struct Foo {
int[] data;
this(int n) {
data.length = n;
}
this(this) {
data = data.dup;
}
// Implicitly generated by compiler
ref Foo opAssign(Foo rhs) { ... }
}
void main() {
...
f1 = f2 = Foo(1);
// is translated to:
f1.opAssign(f2.opAssign(Foo(1))); // f2.opAssign returns ref Foo
}
Postblit not called on ref returned object is same as bug 6119.
Then, this was a dup of it.
*** This issue has been marked as a duplicate of issue 6119 ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---