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.
@MoonlightSentinel created dlang/dmd pull request #12605 "Fix 21985 - Ensure that LabelDsymbols have an explicit location" fixing this issue: - Fix 21985 - Ensure that LabelDsymbols have an explicit location This allows the error reporting to point to the first usage of an unknown label. https://github.com/dlang/dmd/pull/12605
dlang/dmd pull request #12605 "Fix 21985 - Ensure that LabelDsymbols have an explicit location" was merged into master: - 75407aeef71ff5c0fe0a02a15b2b73585c4faf0e by MoonlightSentinel: Fix 21985 - Ensure that LabelDsymbols have an explicit location This allows the error reporting to point to the first usage of an unknown label. https://github.com/dlang/dmd/pull/12605