-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: add test for passing arguments with typedefs compatible in C #23720
Comments
I believe this is due to the fix for #19832. |
Change https://golang.org/cl/92455 mentions this issue: |
@ianlancetaylor many thanks for the quick response/revert. Is it possible to add a test for the broken case to ensure it doesn't slip? |
@liggitt In 1.11, sure. |
Change https://golang.org/cl/118737 mentions this issue: |
Fixes golang#23720 Change-Id: I28e0c16503bc043f793e0dab19668f7a66313312 Reviewed-on: https://go-review.googlesource.com/118737 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10rc1 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
Tried to build/test a cgo package that compiled successfully under previous versions of go
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
Seen in
github.com/apcera/gssapi
, but reproduceable with similar typedefs in this program:What did you expect to see?
with go1.9.2:
What did you see instead?
with go1.10rc1:
the coercion of a
gss_name_t
(typedefstruct gss_name_struct
) togss_const_name_t
(typedefconst struct gss_name_struct
) previously worked as expected, but go1.10rc1 now complains about it and requires an explicit cast.gss_name_t: http://www.gnu.org/software/gss/reference/gss-api.html#gss-name-t
gss_const_name_t: http://www.gnu.org/software/gss/reference/gss-api.html#gss-const-name-t
xref https://github.com/apcera/gssapi/issues/54
The text was updated successfully, but these errors were encountered: