D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21553 - incorrect call to expressionSemantic() in statementsem.d
Summary: incorrect call to expressionSemantic() in statementsem.d
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: pull, wrong-code
Depends on:
Blocks:
 
Reported: 2021-01-17 10:23 UTC by Walter Bright
Modified: 2021-01-17 11:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Walter Bright 2021-01-17 10:23:08 UTC
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 Dlang Bot 2021-01-17 10:28:51 UTC
@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 Dlang Bot 2021-01-17 11:53:36 UTC
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