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
The text was updated successfully, but these errors were encountered:
kbolino
changed the title
cmd/cgo: Pointer to incomplete C type is mangled when passed through interface type and generic type assert
cmd/cgo: pointer to incomplete C type is mangled when passed through interface type and generic type assert
Mar 16, 2022
Here is a standalone example that doesn't use cgo. This appears to be a bug in the way that generic code handles type assertions, or notinheap pointers, or something. CC @randall77 .
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
This is the latest release.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
This is a minimal example; the original use case involved
cgo.Handle
and passing pointers across the Go/C boundary.What did you expect to see?
A compilation error or panic would also have sufficed.
What did you see instead?
for example,
The text was updated successfully, but these errors were encountered: