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

Open
dotaheor opened this issue Jan 25, 2020 · 1 comment
Open

gccgo: crash on loop alias reference #36764

dotaheor opened this issue Jan 25, 2020 · 1 comment
Milestone

Comments

@dotaheor
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?

True

What did you do?

type A = *struct {
	A
}

What did you expect to see?

Fails to compile for invalid recursive type alias.

What did you see instead?

Crashes.

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

@dotaheor dotaheor commented Jan 27, 2020

Another one:

package main

type A B

type B = struct {
	*A
}

func (*A) M() {}

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.