gcc/libgo/go
Ian Lance Taylor f5eb9a8ec6 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: r229907
2015-11-07 01:24:57 +00:00
..
archive runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
bufio runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
builtin runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
bytes runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
cmd libgo: Update from Go 1.5 to Go 1.5.1. 2015-10-31 15:23:52 +00:00
compress runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
container libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
crypto runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
database/sql runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
debug runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
encoding re PR go/66138 (json decoder Decode function fails for some structure return values) 2015-11-07 01:24:57 +00:00
errors
exp libgo: Update to Go 1.1.1. 2013-07-16 06:54:42 +00:00
expvar runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
flag runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
fmt libgo: Update from Go 1.5 to Go 1.5.1. 2015-10-31 15:23:52 +00:00
go runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
hash runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
html runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
image runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
index/suffixarray libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
internal libgo: Update from Go 1.5 to Go 1.5.1. 2015-10-31 15:23:52 +00:00
io runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
log runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
math runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
mime runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
net libgo: Solaris portability fixes. 2015-11-06 19:15:45 +00:00
old libgo: Update to Go 1.1.1. 2013-07-16 06:54:42 +00:00
os runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
path runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
reflect re PR go/66138 (json decoder Decode function fails for some structure return values) 2015-11-07 01:24:57 +00:00
regexp runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
runtime libgo: Update from Go 1.5 to Go 1.5.1. 2015-10-31 15:23:52 +00:00
sort runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
strconv runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
strings runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
sync runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
syscall libgo: Solaris portability fixes. 2015-11-06 19:15:45 +00:00
testing runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
text runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
time runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
unicode runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00