www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21985] New: "goto" errors with unexistent label report


          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

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