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
Was writing a bytecode interpreter and randomly caused this. The following program is a simplification.
package main
func main() {}
type bugs struct {
insns []*int
}
func runbug(fn *bugs) {
panic("no")
c := fn
loop:
for {
_ = c.insns[0]
continue loop
}
}
What did you see happen?
Go outputs:
# command-line-arguments
CLOSURE [/home/evanphx/tmp/bug.go:15:7:var c *main.bugs]
<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
What did you expect to see?
Nothing, the program does nothing.
The text was updated successfully, but these errors were encountered:
Go version
go version go1.22.1 linux/arm64
Output of
go env
in your module/workspace:What did you do?
Was writing a bytecode interpreter and randomly caused this. The following program is a simplification.
What did you see happen?
Go outputs:
What did you expect to see?
Nothing, the program does nothing.
The text was updated successfully, but these errors were encountered: