go1.18-dev: panic: <nil> not an Int
calling unsafe.Sizeof
on a generic T
#47900
Labels
panic: <nil> not an Int
calling unsafe.Sizeof
on a generic T
#47900
Uh oh!
There was an error while loading. Please reload this page.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No -- this is a panic only in
gotip
related to type parameters andunsafe
(yes, yes, I know)What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go.mod:
repro.go:
What did you expect to see?
I shouldn't be able to make the compiler panic
This seems like it might be a known issue or a pending TODO (apologies if so), but since I don't usually expect the compiler to be able to panic, I figured I'd file it just in case.
What did you see instead?
The text was updated successfully, but these errors were encountered: