-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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/vet: incorrectly flags an array as too small when initialized with a constant assigned from unsafe.Sizeof literal #60734
Comments
Related to #60431. |
This looks like it a type-checking failure and a likely duplicate of #60734 . Let's come back to this after the other issue has been addressed. |
Change https://go.dev/cl/501495 mentions this issue: |
For golang/go#60431 For golang/go#60734 Change-Id: I6a15a24e3e121635b33d77fde9170a41514c0db1 Reviewed-on: https://go-review.googlesource.com/c/tools/+/501495 Run-TryBot: Cuong Manh Le <[email protected]> Reviewed-by: Damien Neil <[email protected]> Auto-Submit: Cuong Manh Le <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Robert Griesemer <[email protected]> Auto-Submit: Robert Griesemer <[email protected]> gopls-CI: kokoro <[email protected]> Reviewed-by: Robert Griesemer <[email protected]>
Change https://go.dev/cl/506715 mentions this issue: |
Change https://go.dev/cl/506856 mentions this issue: |
What version of Go are you using (
go version
)?(also shows up on Go playground)
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
run
go vet
on this code.(also can find it at https://go.dev/play/p/q6r-qRpAGFa )
What did you expect to see?
I expected no
go vet
warning.What did you see instead?
I get the following message from
go vet
:The text was updated successfully, but these errors were encountered: