compiler: generate type descriptor for pointer to alias defined in another package

Programming / Compilers / GCC - ian [138bc75d-0d04-0410-961f-82ee72b054a4] - 11 December 2019 00:15 UTC

When a type descriptor is needed (for e.g. interface conversion), if the type is a pointer to a named type defined in another package, we don't generate the definition of the type descriptor because it is generated in the package where the type is defined. However, if the named type is an alias to an unnamed type, its descriptor is not generated in the other package, and we need to generate it.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/210787

aad65f50638 compiler: generate type descriptor for pointer to alias defined in another package
gcc/go/gofrontend/MERGE | 2 +-
gcc/go/gofrontend/types.cc | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)

Upstream: gcc.gnu.org


  • Share