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: crash on loop alias reference #36764

dotaheor opened this issue Jan 25, 2020 · 1 comment

gccgo: crash on loop alias reference #36764

dotaheor opened this issue Jan 25, 2020 · 1 comment


Copy link

@dotaheor dotaheor commented Jan 25, 2020

What version of Go are you using (go version)?

$ gccgo --version
gccgo (Ubuntu 8.3.0-6) 8.3.0

Does this issue reproduce with the latest release?


What did you do?

type A = *struct {

What did you expect to see?

Fails to compile for invalid recursive type alias.

What did you see instead?


@gopherbot gopherbot added this to the Gccgo milestone Jan 25, 2020
Copy link

@dotaheor dotaheor commented Jan 27, 2020

Another one:

package main

type A B

type B = struct {

func (*A) M() {}

func main() {
	var b B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants