Skip to content

cmd/compile: internal compiler error: unhandled expr INDEXMAP #78028

@jake-ciolek

Description

@jake-ciolek

Go version

go 1.26.1 darwin/arm64

Output of go env in your module/workspace:

GOARCH=arm64

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.

Metadata

Metadata

Assignees

Labels

BugReportIssues describing a possible bug in the Go implementation.NeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions