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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 1 16:05:38 UTC 2020


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel updated dlang/dmd pull request #11659 " Fix Issue 21213 -
preview=dtorfields with strict attributes... " fixing this issue:

- 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