We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go version
$ go version go version devel +9499a2e108 Sun Oct 18 08:32:19 2020 +0000 linux/amd64
Yes, both 1.14.x and 1.15.x
go env
Not relevant
With these programs:
package p var c chan [2 << 16]byte
and:
package p var c chan [2 << 16]byte func f() { _ = 42 }
Compiler emits and error, point to declaration of c.
c
Instead, for the first program, the line number is missing:
channel element type too large (>64kB)
The second program, the compiler point to irrelevant line (actually, lineno):
lineno
t.go:6:4: channel element type too large (>64kB)
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/263597 mentions this issue: cmd/compile: use type position for error message in align.go
cmd/compile: use type position for error message in align.go
Sorry, something went wrong.
bccdd31
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, both 1.14.x and 1.15.x
What operating system and processor architecture are you using (
go env
)?Not relevant
What did you do?
With these programs:
and:
What did you expect to see?
Compiler emits and error, point to declaration of
c
.What did you see instead?
Instead, for the first program, the line number is missing:
The second program, the compiler point to irrelevant line (actually,
lineno
):The text was updated successfully, but these errors were encountered: