D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23000 - final switch error has no line number with -checkaction=C
Summary: final switch error has no line number with -checkaction=C
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
Depends on:
Blocks:
 
Reported: 2022-04-10 04:01 UTC by duser
Modified: 2022-04-12 09:05 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description duser 2022-04-10 04:01:19 UTC
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 Dlang Bot 2022-04-10 18:19:33 UTC
@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 Dlang Bot 2022-04-12 09:05:41 UTC
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