Skip to content
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/vet: doesn't seem to like C.CBytes #17201

asimshankar opened this issue Sep 23, 2016 · 1 comment


None yet
4 participants
Copy link

commented Sep 23, 2016

What version of Go are you using (go version)?


What operating system and processor architecture are you using (go env)?


What did you do?

Ran go vet on go/misc/cgo/test/issue14838.go

# Download 
curl \
  -o /tmp/x.go
# Run go vet
go vet /tmp/x.go

What did you expect to see?

No output and exit status 0

What did you see instead?

/tmp/x.go:31: possibly passing Go type with embedded pointer to C
exit status 1

@quentinmit quentinmit changed the title go vet doesn't seem to like C.CBytes cmd/vet: doesn't seem to like C.CBytes Oct 3, 2016

@quentinmit quentinmit added this to the Go1.8 milestone Oct 3, 2016

@quentinmit quentinmit added the NeedsFix label Oct 3, 2016


This comment has been minimized.

Copy link

commented Oct 24, 2016

This got filed separately as #17563. That one has a CL, so closing this one in favor of that one, even though this one was older.

@golang golang locked and limited conversation to collaborators Oct 24, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.