Skip to content

cmd/compile: ICE from failed assertion #66568

@ThinkChaos

Description

@ThinkChaos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions