Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/cgo: missing field in packed struct #8373
What does 'go version' print? go version go1.3 linux/amd64 What steps reproduce the problem? 1. Create a C struct with two fields, a uint32_t and a uint64_t, and __attribute__((packed)). 2. Try to access the second field. What happened? The second field is not detected: ./bug.go:14: bug.b undefined (type C.struct_bug has no field or method b) What should have happened instead? The second field is detected and can be used. Please provide any additional information below. Go 1.2.2 builds the code without problem
This issue was closed.