gcc/libgo/go/reflect
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
..
all_test.go runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
deepequal.go libgo: Merge from revision 18783:00cce3a34d7e of master library. 2014-06-04 23:15:33 +00:00
example_test.go runtime: Remove now unnecessary pad field from ParFor. 2015-10-31 00:59:47 +00:00
export_test.go re PR go/66138 (json decoder Decode function fails for some structure return values) 2015-11-07 01:24:57 +00:00
makefunc_ffi_c.c Add attribute unused to dummy arguments in ffi stub 2015-01-19 14:10:59 -08:00
makefunc_ffi.go reflect: Fix build for systems that do not define ffi_go_closure. 2015-01-19 02:56:28 +00:00
makefunc.go reflect: Fix build for systems that do not define ffi_go_closure. 2015-01-19 02:56:28 +00:00
set_test.go
tostring_test.go
type.go re PR go/66138 (json decoder Decode function fails for some structure return values) 2015-11-07 01:24:57 +00:00
value.go re PR go/66138 (json decoder Decode function fails for some structure return values) 2015-11-07 01:24:57 +00:00