cmd/gc: fix Offsetof computation.
The offset of an embedded field s.X must be relative to s and not to the implicit s.Field of which X is a direct field. Moreover, no indirections may happen on the path. Fixes #4909. R=nigeltao, ality, daniel.morsing, iant, gri, r CC=golang-dev https://golang.org/cl/8287043
Showing
test/fixedbugs/issue4909a.go
0 → 100644
test/fixedbugs/issue4909b.go
0 → 100644
Please register or sign in to comment