gcc/libgo/go/encoding/json
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
..
testdata libgo: Update to weekly.2011-12-14. 2012-01-12 01:31:45 +00:00
bench_test.go libgo: Update Go library to master revision 15502/229081515358. 2013-01-30 01:37:13 +00:00
decode.go libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
decode_test.go re PR go/66138 (json decoder Decode function fails for some structure return values) 2015-11-07 01:25:43 +00:00
encode.go re PR go/66138 (json decoder Decode function fails for some structure return values) 2015-11-07 01:25:43 +00:00
encode_test.go libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
fold.go libgo: Merge from revision 18783:00cce3a34d7e of master library. 2014-06-04 23:15:33 +00:00
fold_test.go libgo: Merge from revision 18783:00cce3a34d7e of master library. 2014-06-04 23:15:33 +00:00
indent.go libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
scanner.go libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
scanner_test.go libgo: Merge to master revision 19184. 2014-06-06 22:37:27 +00:00
stream.go libgo, compiler: Upgrade libgo to Go 1.4, except for runtime. 2015-01-15 00:27:56 +00:00
stream_test.go libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
tagkey_test.go libgo: Update Go library to master revision 15489/921e53d4863c. 2013-01-29 20:52:43 +00:00
tags.go libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
tags_test.go