[Issue 21213] preview=dtorfields with strict attributes in base class constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 3 23:02:18 UTC 2020


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #11659 " Fix Issue 21213 - preview=dtorfields with
strict attributes... " was merged into master:

- fd9adfc77fee6e3f930e20e26063a58b847daf66 by MoonlightSentinel:
  Fix Issue 21213 - preview=dtorfields with strict attributes...

  ... in base class constructor - by infer attributes for generated
  subclass constructors.

  Simply copying the attributes from the base class ctor doesn't work if
  other lowerings extend the generated function body.

  This is e.g. problematic for `-preview=dtorfields` which adds a call
  to the destructor which is often less qualified than the constructor.

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

--


More information about the Digitalmars-d-bugs mailing list