Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/compile: assertion failure in validType test [go1.23] #66323

Closed
griesemer opened this issue Mar 14, 2024 · 1 comment
Closed

cmd/compile: assertion failure in validType test [go1.23] #66323

griesemer opened this issue Mar 14, 2024 · 1 comment
Assignees
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. release-blocker
Milestone

Comments

@griesemer
Copy link
Contributor

The following code causes a compiler crash (playground):

package p

import "time"

type S[T any] struct {
	a T
	b time.Time
}

var _ S[time.Time]
panic: /Users/gri/goroot/src/cmd/compile/internal/types2/validtype.go:126: assertion failed [recovered]
        panic: /Users/gri/goroot/src/cmd/compile/internal/types2/validtype.go:126: assertion failed [recovered]
        panic: /Users/gri/goroot/src/cmd/compile/internal/types2/validtype.go:126: assertion failed
@griesemer griesemer added this to the Go1.23 milestone Mar 14, 2024
@griesemer griesemer self-assigned this Mar 14, 2024
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Mar 14, 2024
@griesemer griesemer changed the title cmd/compile: assertion failure in validType test cmd/compile: assertion failure in validType test [go1.23] Mar 14, 2024
@gopherbot
Copy link

Change https://go.dev/cl/571836 mentions this issue: go/types, types2: avoid assertio failure in Checker.validType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. release-blocker
Projects
None yet
Development

No branches or pull requests

2 participants