Bug 23000 – final switch error has no line number with -checkaction=C

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-04-10T04:01:19Z
Last change time
2022-04-12T09:05:41Z
Keywords
pull
Assigned to
No Owner
Creator
duser

Comments

Comment #0 by duser — 2022-04-10T04:01:19Z
void main() { final switch (1) { case 2: break; } } $ dmd -checkaction=C -run test.d dmd_runsFHrKf: test.d:0: Assertion `0' failed. $ wine dmd -checkaction=C -run test.d Assertion failed: 0, file test.d, line 0 both show the line number as 0
Comment #1 by dlang-bot — 2022-04-10T18:19:33Z
@dkorpel created dlang/dmd pull request #13971 "Fix issue 23000 - final switch error has no line number with -checkaction=C" fixing this issue: - Fix issue 23000 - final switch error has no line number with -checkaction=C https://github.com/dlang/dmd/pull/13971
Comment #2 by dlang-bot — 2022-04-12T09:05:41Z
dlang/dmd pull request #13971 "Fix issue 23000 - final switch error has no line number with -checkaction=C" was merged into master: - ffc6e352347a3e7b147aa7c5dd82cafcbf2657b7 by Dennis Korpel: Fix issue 23000 - final switch error has no line number with -checkaction=C https://github.com/dlang/dmd/pull/13971