cmd/vet: invalid move due to type clash, warning unclear #55936
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Windows 10 64-bit
What did you do?
Create a Go file
xxx.go
with the following content:And the assembly file
xxx_amd64.s
:Then run
go vet
What did you expect to see?
Nothing; in particular no false positive warning.
What did you see instead?
.\xxx_amd64.s:7:1: [amd64] fun: invalid MOVQ of a+0(FP); vm.A is 8-byte value
The size of the array is exactly 8 bytes and yet
go vet
warns that 8 bytes != 8 bytes.The text was updated successfully, but these errors were encountered: