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
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@dotaheor
Copy link

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
@ianlancetaylor ianlancetaylor added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jan 25, 2020
@dotaheor
Copy link
Author

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
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants