-
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: fails to generate certain types with Go 1.14 [1.14 backport] #37622
Comments
Change https://golang.org/cl/226341 mentions this issue: |
Change https://golang.org/cl/226497 mentions this issue: |
Approved because it is a regression, and it breaks generating the x/sys/unix files using Go 1.14. |
…t typedefs with parent name CL 181857 broke the translation of certain C types using cmd/cgo -godefs because it stores each typedef, array and qualified type with their parent type name in the translation cache. Fix this by only considering the parent type for typedefs of anonymous structs which is the only case where types might become ambiguous. Fixes #37622 Change-Id: I301a749ec89585789cb0d213593bb8b7341beb88 Reviewed-on: https://go-review.googlesource.com/c/go/+/226341 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> (cherry picked from commit a265c2c) Reviewed-on: https://go-review.googlesource.com/c/go/+/226497
Closed by merging cdd55a3 to release-branch.go1.14. |
@tklauser requested issue #37621 to be considered for backport to the next 1.14 minor release.
The text was updated successfully, but these errors were encountered: