September 04, 2020 [Issue 21225] preview=dtorfields inserts unnecessary dtor call in nothrow ctors | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21225 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> --- @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 -- | ||||
September 05, 2020 [Issue 21225] preview=dtorfields inserts unnecessary dtor call in nothrow ctors | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21225 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> --- 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 -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply