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: type checking fails in cycle involving recursive struct and unsafe.Sizeof #14620
This should type check but does not:
Looks like the compiler gets confused by the not-quite-cycle in the definition.
The problem is that when typechecking a pointer to a named type like
A workaround is to move the