Skip to content

cmd/compile: internal compiler error: panic: nil #78296

@jake-ciolek

Description

@jake-ciolek

Go version

go 1.26.1

Output of go env in your module/workspace:

GOARCH=arm64

What did you do?

package main

type A *C
type C = D[*H]
type D[_ any] struct{}
type H D[C]

func main() {}

What did you see happen?

The following panic happened checking types near:
	./main.go:6:6
	./main.go:4:6
	./main.go:3:6
<unknown line number>: internal compiler error: panic: nil

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

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions