Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: seemingly identical anonymous types lead to confusing error messages #18911
What version of Go are you using (
Thanks for the issue. This looks like two anonymous types (declared in two separate packages, but identical) are being given different type pointers.
Here's a cleaner repro:
GetY gets inlined, so the type test boils down to (in
Which seems wrong. Both of those LEAs should be of the same address.
I'll look more in the morning.
changed the title
go 1.8rc3 anonymous structs comparing silly error (works in 1.7)
Feb 3, 2017
even if so, i think the error should be more clear, because the folowing is unreadable:
probably it should be