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/compile: ICE from failed assertion #66568

Closed
ThinkChaos opened this issue Mar 27, 2024 · 1 comment
Closed

cmd/compile: ICE from failed assertion #66568

ThinkChaos opened this issue Mar 27, 2024 · 1 comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.

Comments

@ThinkChaos
Copy link

ThinkChaos commented Mar 27, 2024

Go version

Go 1.22 regression (1.21 works)

Output of go env in your module/workspace:

Not relevant, happens on Go playground: https://go.dev/play/p/mJULW_pJBIf

What did you do?

Compile the following program:

package main

func main() {}

func fail() {
	return

	something := false

loop:
	for {
		if something {
			break loop
		}
	}
}

What did you see happen?

Compiler assert

What did you expect to see?

No crash

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Mar 27, 2024
@randall77
Copy link
Contributor

Closing as a duplicate of #65593.
Fix will be out in the next 1.22 release.

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.
Projects
None yet
Development

No branches or pull requests

3 participants