You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the following the contents of /tmp/ice.go (the Go playground rejects it as it doesn't vet):
package main
funcmain() {
panic(0)
x:=0
l:
for {
goto l
}
_=x
}
I attempted compilation.
What did you see happen?
Attempting to compile lead to an internal compiler error:
$ go build /tmp/ice.go
# command-line-arguments
CLOSURE [/tmp/ice.go:13:6:var x int]
<unknown line number>: internal compiler error: assertion failed
Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
Fiddling with the panic's placement, the existence of a label and the existence of a declaration which is referenced after the label, only this combination yielded an internal compiler error.
What did you expect to see?
I want to get an executable which immediately panics, not a confused compiler's goodbye.
The text was updated successfully, but these errors were encountered:
Go version
go version go1.22.1 linux/amd64
Output of
go env
in your module/workspace:What did you do?
With the following the contents of
/tmp/ice.go
(the Go playground rejects it as it doesn't vet):I attempted compilation.
What did you see happen?
Attempting to compile lead to an internal compiler error:
Fiddling with the panic's placement, the existence of a label and the existence of a declaration which is referenced after the label, only this combination yielded an internal compiler error.
What did you expect to see?
I want to get an executable which immediately panics, not a confused compiler's goodbye.
The text was updated successfully, but these errors were encountered: