gcc/libgo/go
Ian Lance Taylor 13eca6e571 re PR go/66138 (json decoder Decode function fails for some structure return values)
PR go/66138
    reflect, encoding/json, encoding/xml: fix unexported embedded structs
    
    Bring in three changes from the master Go repository.  These changes
    will be in Go 1.6, but they are appropriate for gccgo now because they
    resolve a long-standing discrepancy between how gc and gccgo handle the
    PkgPath field for embedded unexported struct fields.  The core issue is
    described at https://golang.org/cl/7247.  This has been reported against
    gccgo as https://gcc.gnu.org/PR66138.
    
    The three changes being brought over are:
    
    https://golang.org/cl/14010
    
    reflect: adjust access to unexported embedded structs
    
    This CL changes reflect to allow access to exported fields and
    methods in unexported embedded structs for gccgo and after gc
    has been adjusted to disallow access to embedded unexported structs.
    
    Adresses #12367, #7363, #11007, and #7247.
    
    https://golang.org/cl/14011
    
    encoding/json: check for exported fields in embedded structs
    
    Addresses issue #12367.
    
    https://golang.org/cl/14012
    
    encoding/xml: check for exported fields in embedded structs
    
    Addresses issue #12367.
    
    Reviewed-on: https://go-review.googlesource.com/16723

From-SVN: r229908
2015-11-07 01:25:43 +00:00
..
archive libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
bufio libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
builtin libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
bytes libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
cmd go/cmd/go: always link external test packages first 2015-03-31 17:54:07 +00:00
compress libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
container libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
crypto Add files somehow left out of last commit (upgrade to Go 1.4). 2015-01-15 00:40:25 +00:00
database/sql libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
debug re PR go/65587 (C package incomplete/not working for powerpc-linux-gnu) 2015-03-26 17:51:57 +00:00
encoding re PR go/66138 (json decoder Decode function fails for some structure return values) 2015-11-07 01:25:43 +00:00
errors libgo: Update to weekly.2012-02-22 release. 2012-03-02 20:01:37 +00:00
exp libgo: Update to Go 1.1.1. 2013-07-16 06:54:42 +00:00
expvar libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
flag libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
fmt libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
go go/build: cgo works on linux/arm64. 2015-03-12 17:05:22 +00:00
hash libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
html libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
image libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
index/suffixarray libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
internal/syscall libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
io libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
log libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
math libgo: Upgrade to Go 1.4.2 release. 2015-03-06 16:19:05 +00:00
mime libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
net net: Restore earlier Solaris-specific version of setKeepAlivePeriod. 2015-01-16 15:57:32 +00:00
old libgo: Update to Go 1.1.1. 2013-07-16 06:54:42 +00:00
os libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
path libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
reflect re PR go/66138 (json decoder Decode function fails for some structure return values) 2015-11-07 01:25:43 +00:00
regexp libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
runtime re PR go/64683 (FAIL: runtime/pprof -- testing.go:278: The entry did not match) 2015-04-17 21:29:08 +00:00
sort libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
strconv libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
strings libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
sync libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
syscall backport: syscall: Add ioctl consts from if_tun.h 2015-08-04 22:04:04 +00:00
testing testing/quick: Revert Alpha specific change. 2015-01-16 23:19:20 +00:00
text libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
time libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
unicode libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00