Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mdempsky opened this issue Oct 5, 2022 · 2 comments
Open

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

mdempsky opened this issue Oct 5, 2022 · 2 comments
Labels
NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@mdempsky
Copy link
Contributor

mdempsky commented Oct 5, 2022

$ 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

@mdempsky mdempsky added the NeedsFix The path to resolution is known, but the work has not been done. label Oct 5, 2022
@mdempsky mdempsky added this to the Gccgo milestone Oct 5, 2022
@mdempsky
Copy link
Contributor Author

mdempsky commented Sep 6, 2023

Anonymous recursive interfaces are unsupported.

@mdempsky mdempsky closed this as completed Sep 6, 2023
@mdempsky
Copy link
Contributor Author

mdempsky commented Sep 6, 2023

Actually, reopening so the ICE can be turned into a proper error message.

@mdempsky mdempsky reopened this Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

1 participant