Skip to content

cmd/compile: internal compiler error: func(#p1 int, #p2 []string) (#r bool) is not assignable to func(int, ...string) bool #78314

@jake-ciolek

Description

@jake-ciolek

Go version

go 1.26.1 / devel at 918644a

Output of go env in your module/workspace:

GOARCH=arm64

What did you do?

package main

func F() {
	for range (func(func(int, ...string) bool))(nil) {
	}
}

func main() {}

What did you see happen?

./main.go:4:2: internal compiler error: func(#p1 int, #p2 []string) (#r bool) is not assignable to func(int, ...string) bool

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new

What did you expect to see?

No ICE.

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

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions