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: internal compiler error: walkExpr: switch 1 unknown op RECOVER #51839
Comments
Could you please provide a full program to reproduce this crash? |
when i use go build test.go
|
A simple demo:
|
Change https://go.dev/cl/394079 mentions this issue: |
Not sure this is qualified for backporting, since when the |
I do think this should be backported if possible, as it's a regression with a seemingly small fix. |
@gopherbot Please open backport to 1.18 This is an internal compiler error on valid code. |
Backport issue(s) opened: #51846 (for 1.18). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
CC @randall77 |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
it is already the latest version
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go func() { defer func() { if r := recover(); r != nil { glog.Errorf("error=%v", r) } }() }
it seems fixed in https://go-review.googlesource.com/c/go/+/342350/
but in this version it appears again
What did you expect to see?
compiles correctly
What did you see instead?
walk . RECOVER INTER-interface {} tc(1) # hello_dao.go:50:21 hello_dao.go:50:21: internal compiler error: walkExpr: switch 1 unknown op RECOVER
The text was updated successfully, but these errors were encountered: