[Issue 21598] checkaction=context reruns pure functions with debug blocks on failure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 1 03:55:48 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21598
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Dlang Bot <dlang-bot at 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
--
More information about the Digitalmars-d-bugs
mailing list