Thread overview | |||||
---|---|---|---|---|---|
|
June 26, 2011 [Issue 6216] New: Built-in opAssign implicitly defined should call field's opAssign | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6216 Summary: Built-in opAssign implicitly defined should call field's opAssign Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: k.hara.pg@gmail.com --- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2011-06-26 10:47:27 PDT --- Following should compile. ---- struct X { int n; const void opAssign(const X rhs) {} } struct S { int n; const(X) x; } void main() { S s; s = s; } ---- test.d(14): Error: variable test.main.s cannot modify struct with immutable members ---- S has implicitly defined opAssign, but it does not call field x's opAssign. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 07, 2012 [Issue 6216] Built-in opAssign implicitly defined should call field's opAssign | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=6216 --- Comment #1 from github-bugzilla@puremagic.com 2012-10-07 09:15:13 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b9896d14766fe5a067cf84d0d2c21418dfb35676 fix Issue 6216 - Built-in opAssign implicitly defined should call field's opAssign Separate 'top assignable' (see opAssign first) from 'blit assignable' (memberwise), and now they are not related to 'modifiable' directly. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 07, 2012 [Issue 6216] Built-in opAssign implicitly defined should call field's opAssign | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=6216 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |FIXED --- Comment #2 from yebblies <yebblies@gmail.com> 2012-10-08 05:49:05 EST --- https://github.com/D-Programming-Language/dmd/commit/5b42e51481d186ee5e3c2684a237a05cea33a0cf -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation