Skip to content

cmd/compile: compiler hang involving recursive generic type instantiation #78341

@jake-ciolek

Description

@jake-ciolek

Go version

go 1.26.1 + tip at cbc2d06

Output of go env in your module/workspace:

GOARCH=arm64

What did you do?

package p

type I[T any] interface {
	M() interface{ I[*T] }
}

ran go build on the above

What did you see happen?

go build command doesn't terminate

What did you expect to see?

go build command terminates

Metadata

Metadata

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

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions