Closed
Description
$ go version
go version go1.21.0 linux/amd64
$ gotip version
go version devel go1.22-a3ced4a Wed Aug 9 03:13:11 2023 +0000 linux/amd64
package p
func f(p []byte) int {
switch "" < string(p) {
case true:
return 0
default:
return 1
}
}
$ go build crash.go
# command-line-arguments
./crash.go:4:12: internal compiler error: missed typecheck:
. LEN int # crash.go:4:12
. . NAME-p.p esc(no) Class:PPARAM Offset:0 OnStack Used SLICE-[]byte tc(1) # crash.go:3:8
cc @golang/compiler @cuonglm
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
All-But-Submitted