Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/cgo: byte argument has Go pointer to Go pointer #28606
With Go 1.11 and HEAD:
I suspect (but cannot yet show that) this is related to the fact that gzip.Writer is passing a byte to the Write method made out of an array field of the gzip.Writer struct.
As far as I know, this still happens. The program above still fails in the same way.
If you want to look at this, that would be great. But I want to caution you that I don't think this will be easy to fix. At the moment I don't really see how to fix it at all.
@ianlancetaylor sorry I have been unavailable for a while due to some unforeseen circumstances.
That would explain why this is able to work just fine as you mentioned earlier when the expressions are combined.
I would love to also look at how the type conversion is implemented. Can you point me in any direction of where this is? Thanks