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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 29 17:16:16 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21349

--- Comment #5 from Paul Backus <snarwin+bugzilla at gmail.com> ---
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 generated copy
constructor will call the members' postblits, so it should be the one that
takes precedence.

--


More information about the Digitalmars-d-bugs mailing list