https://issues.dlang.org/show_bug.cgi?id=21590
Dlang Bot <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #2 from Dlang Bot <[email protected]> --- @MoonlightSentinel created dlang/dmd pull request #12165 "Fix 21590 - assignment inside assert accepted for -checkaction=context" fixing this issue: - Fix 21590 - assignment inside assert accepted for -checkaction=context The rewrite introduced a temporary which hid the assignment inside of `assert(...)` and hence prevented the error. The fix is to omit the additional temporary for `AssignExp` and use the assigned variable directly. The temporary is unecessary anyways and the following semantic analysis will raise an appropriate error. https://github.com/dlang/dmd/pull/12165 --
