reflect: fix StructOf hash and string
commitef191252a43bd6d5f72edbea75e69f4ee503f2d6
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jun 2018 14:50:16 +0000 (6 14:50 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jun 2018 14:50:16 +0000 (6 14:50 +0000)
treecffc231c7ade9a8ba7e8070fec2ec552b4775e96
parent8e3fd6545c2a97a2a53499f4333fbea95744f0de
reflect: fix StructOf hash and string

    Adjust the hash and string fields computed by StructOf to match the
    values that the compiler computes for a struct type with the same
    field names and types.  This makes the reflect code match the
    compiler's Type::hash_for_method and Type::reflection methods.

    Fixes golang/go#25284

    Reviewed-on: https://go-review.googlesource.com/116515

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261235 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
libgo/go/reflect/all_test.go
libgo/go/reflect/type.go