Skip to content

cmd/compile: internal compiler error: declared pointer receiver type #78295

@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 B *struct{ A }
type A interface{ m(B) }

func main() {}

What did you see happen?

./main.go:6:6: internal compiler error: declared pointer receiver type: B

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