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

Closed
asimshankar opened this issue Sep 23, 2016 · 1 comment

Comments

Projects
None yet
4 participants
@asimshankar
Copy link
Contributor

commented Sep 23, 2016

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

1.7.1

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

GOARCH="amd64"
GOOS="darwin"

What did you do?

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

# Download 
curl https://raw.githubusercontent.com/golang/go/53fd522c0db58f3bd75d85295f46bb06e8ab1a9b/misc/cgo/test/issue14838.go \
  -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

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

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.