https://issues.dlang.org/show_bug.cgi?id=21225
Dlang Bot <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Dlang Bot <[email protected]> --- dlang/dmd pull request #11692 "Fix 21225 - preview=dtorfields inserts unnecessary dtor calls..." was merged into master: - 15caafef20af92469b11cfaaeaf16b4e28e2b1d3 by MoonlightSentinel: 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 --
