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/compile: Embedded field names are not tracked correctly with aliased types #28655
What did you do?
What did you expect to see?
The spec says:
The type alias proposal is even more explicit about this. Lastly, both compilers reject
What did you see instead?
gc seems to not assign the correct field name, if the TypeName is an alias.
Also, this is slightly related to #21866 - as in, both have roughly the same root-cause, I'd guess.
Does this issue reproduce with the latest release (go1.11.2)?
Yes. I also, more specifically, reproduced this with the same Go release that my gccgo version supports (as far as I can tell, 1.10).