-
- Downloads
compiler, reflect: fix struct field names for embedded aliases
This adds much of https://golang.org/cl/35731 and https://golang.org/cl/35732 to the gofrontend code. This is a step toward updating libgo to the 1.9 release. The gofrontend already supports type aliases, and this is required for correct support of type aliases when used as embedded fields. The change to expressions.cc is to handle the << 1, used for the newly renamed offsetAnon field, in the constant context used for type descriptor initialization. Reviewed-on: https://go-review.googlesource.com/62710 From-SVN: r252746
Showing
- gcc/go/gofrontend/MERGE 1 addition, 1 deletiongcc/go/gofrontend/MERGE
- gcc/go/gofrontend/expressions.cc 37 additions, 26 deletionsgcc/go/gofrontend/expressions.cc
- gcc/go/gofrontend/types.cc 13 additions, 11 deletionsgcc/go/gofrontend/types.cc
- libgo/go/reflect/all_test.go 45 additions, 50 deletionslibgo/go/reflect/all_test.go
- libgo/go/reflect/type.go 42 additions, 41 deletionslibgo/go/reflect/type.go
- libgo/go/reflect/value.go 2 additions, 2 deletionslibgo/go/reflect/value.go
Loading
Please register or sign in to comment