You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
the second field is mis-aligned according to Go's rule of field
alignment, so it's impossible for Go to access the 2nd field.
This is actually a bug of previous Go version.
by Jonathan.Plona:
Attachments:
The text was updated successfully, but these errors were encountered: