compiler: don't export embedded builtins.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 23 Aug 2013 21:04:40 +0000 (21:04 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 23 Aug 2013 21:04:40 +0000 (21:04 +0000)
commit4500f676e138a5ea3337ebd47745d8b49ba775b5
treead0d91464e75c09a960cd3be16de2f242062c4d4
parent009e53539dc7e6d0bf5c7084a6c8cae25b4f4c68
compiler: don't export embedded builtins.

The panic in test/fixedbugs/bug461.go was caused by the fact that
reflect expects unexported fields in a struct to have a valid
package path. If a struct field is an embedded built-in type, it is
now given the package name of the currently compiling package, so it
remains unexported for purposes of reflect.

Fixed Issue 25.

From-SVN: r201951
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h