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
Closed

cmd/vet: doesn't seem to like C.CBytes #17201

asimshankar opened this issue Sep 23, 2016 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@asimshankar
Copy link
Contributor

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 The path to resolution is known, but the work has not been done. label Oct 3, 2016
@ianlancetaylor
Copy link
Contributor

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.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

4 participants