Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/cgo: cgo pointer checking issue with struct fields #25941
Issue: go 1.10.2 and current go tip (b7d9e6e).
When you use a pointer inside to another struct with pointers when calling C then CGO check fails with "panic: runtime error: cgo argument has Go pointer to Go pointer".
Possibly related to #14210
Code to reproduce:
I was examining / thinking how to fix it. What if it were to unwrap
So, instead of generating:
It would generate:
The same goes for the