Skip to content

cmd/compile: ICE on embedded method expression with receiver parameter of derived type #54058

@mdempsky

Description

@mdempsky

This program is valid, but ICEs with the nounified frontend: https://go.dev/play/p/54ohNsbev55

It appears to be a bad interaction between method expressions, receiver parameters of derived type, and method embedding.

It currently works with GOEXPERIMENT=unified. Marking for Go 1.20, because I expect enabling unified IR by default is how we'll fix this issue.

/cc @golang/compiler

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe 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

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions