This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r201951 - in /trunk/gcc/go/gofrontend: types.cc...


Author: ian
Date: Fri Aug 23 21:04:40 2013
New Revision: 201951

URL: http://gcc.gnu.org/viewcvs?rev=201951&root=gcc&view=rev
Log:
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.

Modified:
    trunk/gcc/go/gofrontend/types.cc
    trunk/gcc/go/gofrontend/types.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]