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
{{ message }}
Repository navigation
cmd/compile: panic on interface switch case with invalid name #22063
Another variation of #21988, this time using an interface type. Found it manually by inspecting the source code as there was a .Val().Interface() use without the appropriate .Type == nil check.
Reproducer:
package p
const X = Wrong(0)
func _() {
switch interface{}(nil) {
case X:
}
}
Activity
gopherbot commentedon Sep 27, 2017
Change https://golang.org/cl/66450 mentions this issue:
cmd/compile: fix another invalid switch case panic