-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: internal compiler error: Value live at entry. It shouldn't be. [1.16 backport] #44358
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
Labels
Milestone
Comments
This is a compiler crash on valid code that used to work with Go 1.15. |
Approved. This is a serious issue. |
Change https://golang.org/cl/296569 mentions this issue: |
Closed by merging ddeae6b to release-branch.go1.16. |
gopherbot
pushed a commit
that referenced
this issue
Mar 1, 2021
…rly for empty returns The code for delayed declaration of inlined result parameters only handles non-empty return statements. This is generally okay, because we already early declare if there are any (non-blank) named result parameters. But if a user writes a function with only blank result parameters and with exactly one return statement, which is empty, then they could end up hitting the dreaded "Value live at entry" ICE. This CL fixes the issue by ensuring we always early declare inlined result parameters if there are any empty return statements. Fixes #44358. Change-Id: I315f3853be436452883b1ce31da1bdffdf24d506 Reviewed-on: https://go-review.googlesource.com/c/go/+/293293 TryBot-Result: Go Bot <[email protected]> Trust: Matthew Dempsky <[email protected]> Run-TryBot: Matthew Dempsky <[email protected]> Reviewed-by: Cuong Manh Le <[email protected]> Reviewed-by: David Chase <[email protected]> Reviewed-on: https://go-review.googlesource.com/c/go/+/296569
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
@mdempsky requested issue #44355 to be considered for backport to the next 1.16 minor release.
The text was updated successfully, but these errors were encountered: