[Issue 20965] Implicitly generated postblit overrides disabled copy ctor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 11 10:49:12 UTC 2020


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

--- Comment #8 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #11947 "Revert PR 11945 (Postblit has priority over copy
constructor)" was merged into master:

- bc6976a4cc7abe799856689c077406a269dc0c51 by Geod24:
  Revert "Fix Issues 20714, 20965 - Postblit has priority over copy
constructor"

  This reverts commit c35ace622492da4ca53c055c9af0fa0346aa178b.

  PR 11945 / this commit introduces a silent change of behavior,
  which leads to fields with postblit not having their postblit
  called anymore.
  A deprecation path was proposed, and would require the user to
  disable postblit when a copy constructor is present,
  or issue a deprecation message otherwise.
  Other options are likely available to avoid a silent behavior change.
  However, since the PR was merged within 4 minutes of being submitted,
  there were no time for such suggestions.
  Additionally, the PR was lacking both a spec PR and a changelog entry.

https://github.com/dlang/dmd/pull/11947

--


More information about the Digitalmars-d-bugs mailing list