[Issue 23000] New: final switch error has no line number with -checkaction=C
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 10 04:01:19 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23000
Issue ID: 23000
Summary: final switch error has no line number with
-checkaction=C
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: duser at neet.fi
CC: duser at neet.fi
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
--
More information about the Digitalmars-d-bugs
mailing list