-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: Go1.22RC1 compiler crash when using GOEXPERIMENT=rangefunc #64930
Comments
Tentatively marking as release blocker, but it only affects GOEXPERIMENT=rangefunc. cc @rsc @golang/release @golang/compiler |
Change https://go.dev/cl/553455 mentions this issue: |
Change https://go.dev/cl/553436 mentions this issue: |
@cuonglm I had already started working on a fix in an earlier CL (553455), but I'm open to discard that in favor of your fix. Out of curiosity, what is the fundamental difference between
And
Since both seem to fix the issue? |
@mauri870 The |
Makes sense, thanks! |
Fixed golang#64930 Change-Id: I916de7f97116fb20cb2f3f0b425ac34409afd494 Reviewed-on: https://go-review.googlesource.com/c/go/+/553436 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]> Auto-Submit: Cuong Manh Le <[email protected]>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
This problem happens with go1.22rc1 when using GOEXPERIMENT=rangefunc
#61405
What operating system and processor architecture are you using (
go env
)?go env
OutputSee the program at https://go.dev/play/p/KyQscllQkMW
With GOEXPERIMENT=rangefunc this program compiles and runs correctly,
which shows that the types and functions are all OK.
However when the commented out for loop is re-enabled the program causes a compiler crash.
What did you expect to see?
No compiler crash, and a program that runs.
What did you see instead?
Compiler Output ...
The text was updated successfully, but these errors were encountered: