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

Dlang Bot <[email protected]> changed:

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

--- Comment #1 from Dlang Bot <[email protected]> ---
@MoonlightSentinel created dlang/dmd pull request #11692 "Fix 21225 -
preview=dtorfields inserts unnecessary dtor calls..." fixing this issue:

- Fix 21225 - preview=dtorfields inserts unnecessary dtor calls...

  ... in nothrow ctors

  Fixed by not inserting the destructor call if the constructor is
  `nothrow` - which makes the generated `catch`-block unreachable
  (unless the ctor violates it's `nothrow` guarantee - which is UB).

  This also saves time & memory spent on generating unused AST elements.

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

--

Reply via email to