Bug 21553 – incorrect call to expressionSemantic() in statementsem.d
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-01-17T10:23:08Z
Last change time
2021-01-17T11:53:36Z
Keywords
pull, wrong-code
Assigned to
No Owner
Creator
Walter Bright
Comments
Comment #0 by bugzilla — 2021-01-17T10:23:08Z
The line around 2778 in the SwitchStatement semantic code:
sl.expressionSemantic(sc);
should be:
sl = sl.expressionSemantic(sc);
otherwise the results of the function are lost.
Comment #1 by dlang-bot — 2021-01-17T10:28:51Z
@WalterBright created dlang/dmd pull request #12133 "fix Issue 21553 - incorrect call to expressionSemantic() in statement…" fixing this issue:
- fix Issue 21553 - incorrect call to expressionSemantic() in statementsem.d
https://github.com/dlang/dmd/pull/12133
Comment #2 by dlang-bot — 2021-01-17T11:53:36Z
dlang/dmd pull request #12133 "fix Issue 21553 - incorrect call to expressionSemantic() in statement…" was merged into master:
- 90e8313f1fdb3c79bed25f4ae41d8d706b8d60de by Walter Bright:
fix Issue 21553 - incorrect call to expressionSemantic() in statementsem.d
https://github.com/dlang/dmd/pull/12133