-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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/compile: unreachable code causes internal compiler error #65680
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Comments
Thanks for the report. cc @golang/compiler |
this also affects non-loop labels https://go.dev/play/p/ylEUvtiBb1X |
the general pattern here seems to be:
We hit this in our "real code" due to an early unconditional return that was added near the top of a function to stub out something that wasn't ready yet. |
Duplicate of #65593? |
Yes, appears to be. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version go1.22.0 openbsd/amd64
Output of
go env
in your module/workspace:What did you do?
https://go.dev/play/p/NHe6QNjlr_i
What did you see happen?
What did you expect to see?
No build error (except for unreachable code warnings from vet).
The text was updated successfully, but these errors were encountered: