Skip to content

gccgo: ICE compiling method value with anonymous recursive interface #56055

@mdempsky

Description

@mdempsky
$ cat x.go
package main

type I interface{ m() interface{ I } }

var _ = I(nil).m

func main() {}

$ gccgo -o x x.go
gccgo: internal compiler error: Segmentation fault signal terminated program go1
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.

/cc @ianlancetaylor @griesemer

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions