[Issue 21349] copy and postblit constructors aren't compatible

2020-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21349 --- Comment #6 from Илья Ярошенко --- I have thought think about these lines > For backward compatibility reasons, a struct that defines both a copy > constructor and a postblit will only use the postblit for implicit copying. What they are really

[Issue 21349] copy and postblit constructors aren't compatible

2020-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21349 --- Comment #5 from Paul Backus --- When an aggregate has both old and new style members, the compiler generates both a copy constructor and a postblit, and the postblit takes precedence. I agree that this is a bug in the language design: the genera

[Issue 21349] copy and postblit constructors aren't compatible

2020-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21349 Илья Ярошенко changed: What|Removed |Added Severity|enhancement |blocker --

[Issue 21349] copy and postblit constructors aren't compatible

2020-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21349 --- Comment #4 from Илья Ярошенко --- btw, I don't see whare spec says that an aggregate can't hold both old and new style members struct C { SOld sOld; SNew sNew; } void main() { C c; auto d = c; assert(d.sOld.s); assert(d.

[Issue 21349] copy and postblit constructors aren't compatible

2020-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21349 --- Comment #3 from Илья Ярошенко --- well. The language spec is buggy. --

[Issue 21349] copy and postblit constructors aren't compatible

2020-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21349 Paul Backus changed: What|Removed |Added CC||snarwin+bugzi...@gmail.com Severity|

[Issue 21350] New: [TestSuite] Failure of test/unit/frontend.d shows as "TARGET: ."

2020-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21350 Issue ID: 21350 Summary: [TestSuite] Failure of test/unit/frontend.d shows as "TARGET: ." Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 21349] copy and postblit constructors aren't compatible

2020-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21349 --- Comment #1 from Илья Ярошенко --- The last assert fails --

[Issue 21349] New: copy and postblit constructors aren't compatible

2020-10-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21349 Issue ID: 21349 Summary: copy and postblit constructors aren't compatible Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: blocker P