-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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/cgo: pointer checking fails on pointer to pointers (representing slice of slices) #42844
Comments
Why? The code violates cgo rules, the checker warning seems correct to me.
|
This line does seem to forbid what I'm trying to do and if so, is the only way to do this is manually allocate C memory( |
We don't really use the bug tracker for general discussion or asking questions about the language. The Github bug tracker is only used for tracking confirmed bugs in Go and proposals going through the Proposal Process. Please see the Questions wiki page; it has a list of good places for asking questions. Closing here, since this is not a bug. |
Can I reopen this as a feature request? |
You could... but it's not wise to ask for a restriction you don't understand to be lifted. Understanding needs to come first. Those rules were not chosen at random. The page I linked above gives an hint
But as I said the issue tracker is not the right place to pursue the aforementioned understanding. |
For more background see https://go.googlesource.com/proposal/+/refs/heads/master/design/12416-cgo-pointers.md . |
Thanks :) |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
I expected the code to work, and it does work correctly without cgo checks
GODEBUG=cgocheck=0 go run .
What did you see instead?
The text was updated successfully, but these errors were encountered: