Skip to content

cmd/compile: internal compiler error: missed typecheck #61908

Closed
@ALTree

Description

@ALTree
$ 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

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

Status

All-But-Submitted

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions