https://issues.dlang.org/show_bug.cgi?id=21985
Issue ID: 21985
Summary: "goto" errors with unexistent label report
wrong/misleading line
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
Code:
---------------------------
void main(string[] args)
{
goto findme;
}
---------------------------
onlineapp.d(1): Error: function `D main` label `findme` is undefined
The error message should print the exact line, where the label is used.
--