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
package p import "unsafe" type E [1 << 32]byte var a [1<<32]E func _() { trace(unsafe.Sizeof(a)) }
go test -run Manual -- x.go produces
x.go:9:8: unsafe.Sizeof(a) (constant 0 of type uintptr)
The text was updated successfully, but these errors were encountered:
Change https://go.dev/cl/478921 mentions this issue: go/types, types2: make sure array sizes don't overflow to 0
go/types, types2: make sure array sizes don't overflow to 0
Sorry, something went wrong.
Change https://go.dev/cl/478919 mentions this issue: cmd/compile: don't panic if unsafe.Sizeof/Offsetof is used with oversize types
cmd/compile: don't panic if unsafe.Sizeof/Offsetof is used with oversize types
171850f
griesemer
No branches or pull requests
go test -run Manual -- x.go produces
The text was updated successfully, but these errors were encountered: