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

cmd/go2go: generated code leads to cmd/compile internal error #40486

Closed
griesemer opened this issue Jul 30, 2020 · 3 comments
Closed

cmd/go2go: generated code leads to cmd/compile internal error #40486

griesemer opened this issue Jul 30, 2020 · 3 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@griesemer
Copy link
Contributor

Extracted from crash 9 of #39634 :

https://go2goplay.golang.org/p/-YZdFhVx8UX

cc: @ianlancetaylor

@gopherbot
Copy link

Change https://golang.org/cl/245742 mentions this issue: [dev.go2go] go/types: add testcase for crash 9 of #39634

gopherbot pushed a commit that referenced this issue Jul 30, 2020
This test passes type-checking without problems but the
generated code causes a cmd/compile error (filed #40486).

Updates #39634.

Change-Id: If3dd28605f6d8792c6bd5bb032624e9a6140b2c0
Reviewed-on: https://go-review.googlesource.com/c/go/+/245742
Reviewed-by: Robert Griesemer <gri@golang.org>
@ianlancetaylor
Copy link
Contributor

This does not get a compiler crash if I translate it and then go build with current tip. So the crash will probably be fixed if we update dev.go2go to current mainline.

That said it does get an error with tip, so there is something wrong with the translation tool.

@ianlancetaylor ianlancetaylor self-assigned this Jul 30, 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 Jul 30, 2020
@ianlancetaylor ianlancetaylor added this to the Unreleased milestone Jul 30, 2020
@ianlancetaylor
Copy link
Contributor

Does not crash on tip. Correctly gets an error.

@golang golang locked and limited conversation to collaborators Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge 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