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
@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
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