February 01, 2021 [Issue 21598] checkaction=context reruns pure functions with debug blocks on failure | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21598 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> --- dlang/dmd pull request #12170 "Fix 21471,21598 - Always create a temporary for calls with checkactio…" was merged into master: - a956cc1f12ef4ea1f2294285bfab99734c65e446 by MoonlightSentinel: Fix 21471,21598 - Always create a temporary for calls with checkaction=context Using a temporary for every expression that calls another function avoids problems with the inliner and avoids an unexpected secondary function call for `pure` functions (which might have side effects in `debug` blocks). See [bugzilla](https://issues.dlang.org/show_bug.cgi?id=21471) for a more complete writeup of the inliner issue. https://github.com/dlang/dmd/pull/12170 -- |
Copyright © 1999-2021 by the D Language Foundation