compiler: ignore struct field tags for type conversion
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 18 May 2017 18:04:29 +0000 (18:04 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 18 May 2017 18:04:29 +0000 (18:04 +0000)
commit7d2f2a6b73fd5022f9f96ffc9e2806c8d7464112
tree2efd8d24b2a654d85532463182d09865a78a7f53
parente4171e100d6c3c5263f8e329fd71edb554a67ea5
compiler: ignore struct field tags for type conversion

    Go 1.8 includes a language change (https://golang.org/doc/go1.8#language):
    in an explicit conversion from one struct type to another, any field
    tags are ignored.

    This CL implements this language change in the gofrontend.  The tests
    for this are in the gc testsuite, which will be copied into the gccgo
    repository in due course.

    Updates golang/go#16085.

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

From-SVN: r248248
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/types.h