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 From-SVN: r279207 |
||
---|---|---|
.. | ||
gofrontend | ||
ChangeLog | ||
config-lang.in | ||
gccgo.texi | ||
go-backend.c | ||
go-c.h | ||
go-gcc-diagnostics.cc | ||
go-gcc.cc | ||
go-gcc.h | ||
go-lang.c | ||
go-linemap.cc | ||
go-location.h | ||
go-sha1.cc | ||
go-system.h | ||
gospec.c | ||
lang-specs.h | ||
lang.opt | ||
Make-lang.in | ||
README.gcc |
The files in the gofrontend subdirectory are mirrored from the gofrontend project hosted at http://code.google.com/p/gofrontend. These files are the ones in the go subdirectory of that project.