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/cgo: C.void broken by CL 230037 #39877

Closed
mdempsky opened this issue Jun 26, 2020 · 2 comments
Closed

cmd/cgo: C.void broken by CL 230037 #39877

mdempsky opened this issue Jun 26, 2020 · 2 comments
Milestone

Comments

@mdempsky
Copy link
Member

Given:

package p
import "C"
var x *C.void

cgo now emits:

type _Ctype_void = _Ctype_void

type _Ctype_void [0]byte

in _cgo_gotypes.go. It used to only emit the second line.

The type alias needs to be suppressed.

@mdempsky mdempsky added this to the Go1.15 milestone Jun 26, 2020
@mdempsky mdempsky self-assigned this Jun 26, 2020
@gopherbot
Copy link

Change https://golang.org/cl/240180 mentions this issue: cmd/cgo: prevent redeclaration of _Ctype_void when C.void is used

@rsc
Copy link
Contributor

rsc commented Jun 26, 2020

FWIW, here is a list of references to C.void in a snapshot of latest modules from the proxy from March 2020. Not a ton but more than I expected.

voids.txt

@golang golang locked and limited conversation to collaborators Jun 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants