You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This program compiles ok and can print 16 on amd64. However, go vet reports vet: ./prog.go:11:9: unsafe.Sizeof(foo{}) - 16 (constant -7 of type uintptr) overflows uintptr.
This may be due to a miscalculation of unsafe.Sizeof(foo{}) by go/types packages.
cc @griesemer
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
This program compiles ok and can print
16
on amd64. However, go vet reportsvet: ./prog.go:11:9: unsafe.Sizeof(foo{}) - 16 (constant -7 of type uintptr) overflows uintptr
.This may be due to a miscalculation of
unsafe.Sizeof(foo{})
by go/types packages.cc @griesemer
The text was updated successfully, but these errors were encountered: