digitalmars.D.bugs - [Issue 21985] New: "goto" errors with unexistent label report
- d-bugmail puremagic.com (24/24) May 28 2021 https://issues.dlang.org/show_bug.cgi?id=21985
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: nobody puremagic.com Reporter: naydef abv.bg 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. --
May 28 2021