Go version
go 1.26.1 darwin/arm64
Output of go env in your module/workspace:
What did you do?
package main
var z = map[int]int{0: 1}
func main() {
_ = make([]byte, z[0], 1)
}
What did you see happen?
go run .
# report
./main.go:6:20: internal compiler error: 'main': unhandled expr INDEXMAP
Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
What did you expect to see?
It shouldn't have erred.
Go version
go 1.26.1 darwin/arm64
Output of
go envin your module/workspace:What did you do?
What did you see happen?
What did you expect to see?
It shouldn't have erred.