[Issue 21985] New: "goto" errors with unexistent label report wrong/misleading line

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 28 19:07:40 UTC 2021


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 at puremagic.com
          Reporter: naydef at 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.

--


More information about the Digitalmars-d-bugs mailing list