New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/compile: off-by-many in line number reported for compile error #15459
Comments
It is basically the same problem as #8836. In the Node AST, the |
@griesemer is looking into a long-term revamp of the front end code. That will address this. I don't think it's worth worrying about before then. Even if the line number is off a little, the error is very clear about the location. |
Reproduces on tip as of May 2, 2017. |
Bumping to 1.10 unless @mdempsky sees an easy fix. |
Bumping to unplanned in favor of a more significant overhaul of front-end. |
Change https://golang.org/cl/147379 mentions this issue: |
The errors are now reported at the correct location with Go 1.18. Closing. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.6 linux/amd64
go version devel +2a889b9 Tue Apr 26 23:40:13 2016 +0000 linux/amd64
What operating system and processor architecture are you using (
go env
)?GOHOSTARCH="amd64"
GOHOSTOS="linux"
What did you do?
Compile http://play.golang.org/p/QBYmFtLesr
What did you expect to see?
Errors on the lines that s1 and s2 are used on:
What did you see instead?
Errors on the first argument of the function call:
This looks similar to #8836 but not quite.
The text was updated successfully, but these errors were encountered: