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
| Name | Last commit | Last update | 
|---|---|---|
| .. | ||
| LICENSE | Loading commit data... | |
| MERGE | Loading commit data... | |
| PATENTS | Loading commit data... | |
| README | Loading commit data... | |
| ast-dump.cc | Loading commit data... | |
| ast-dump.h | Loading commit data... | |
| backend.h | Loading commit data... | |
| dataflow.cc | Loading commit data... | |
| dataflow.h | Loading commit data... | |
| escape.cc | Loading commit data... | |
| escape.h | Loading commit data... | |
| export.cc | Loading commit data... | |
| export.h | Loading commit data... | |
| expressions.cc | Loading commit data... | |
| expressions.h | Loading commit data... | |
| go-dump.cc | Loading commit data... | |
| go-dump.h | Loading commit data... | |
| go-linemap.h | Loading commit data... | |
| go-optimize.cc | Loading commit data... | |
| go-optimize.h | Loading commit data... | |
| go.cc | Loading commit data... | |
| gogo.cc | Loading commit data... | |
| gogo.h | Loading commit data... | |
| import-archive.cc | Loading commit data... | |
| import.cc | Loading commit data... | |
| import.h | Loading commit data... | |
| lex.cc | Loading commit data... | |
| lex.h | Loading commit data... | |
| operator.h | Loading commit data... | |
| parse.cc | Loading commit data... | |
| parse.h | Loading commit data... | |
| runtime.cc | Loading commit data... | |
| runtime.def | Loading commit data... | |
| runtime.h | Loading commit data... | |
| statements.cc | Loading commit data... | |
| statements.h | Loading commit data... | |
| string-dump.h | Loading commit data... | |
| types.cc | Loading commit data... | |
| types.h | Loading commit data... | |
| unsafe.cc | Loading commit data... |