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: yet another "internal compiler error: second walk of switch" #29562
package p
func il(s string) string {
switch len(s) {
case 0:
return "zero"
case 1:
return "one"
}
return s
}
func f() {
var s string
var as []string
switch false && (s+"a"+as[0]+il(s)+as[0]+s == "") {
}
}
What did you expect to see?
compilation
What did you see instead?
failure:
dwalkil.go:16:33: internal compiler error: second walk of switch
changed the title [-]Yet another "internal compiler error: second walk of switch"[/-][+]cmd/compile: yet another "internal compiler error: second walk of switch"[/+]on Jan 4, 2019
Activity
gopherbot commentedon Jan 4, 2019
Change https://golang.org/cl/156317 mentions this issue:
cmd/compile: modify swt.go to avoid double walk of switch[-]Yet another "internal compiler error: second walk of switch"[/-][+]cmd/compile: yet another "internal compiler error: second walk of switch"[/+]