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
the labeled for loop (removing the label removes the issue)
the mapp variable
What did you see happen?
CLOSURE [prog.go:14:20:var arr []string ./prog.go:16:3:var mapp map[string]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
See playground.
What did you expect to see?
This should build sucessfully.
The code itself is dumb and is just the smallest repro I can do.
go1.21 works on the same codebase (go vet warns, but that's expected).
The text was updated successfully, but these errors were encountered:
karelbilek
changed the title
internal compiler error: assertion failed
cmd/compile: internal compiler error: assertion failed
Mar 6, 2024
Go version
go version go1.22.0 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
Small repro:
Replicable here.
https://go.dev/play/p/fLjUPRVQ90v
Note that all is needed:
panic("foo")
mapp
variableWhat did you see happen?
See playground.
What did you expect to see?
This should build sucessfully.
The code itself is dumb and is just the smallest repro I can do.
go1.21 works on the same codebase (go vet warns, but that's expected).
The text was updated successfully, but these errors were encountered: