compiler: look through aliases for type compatibility
commitf895ea1f24fb2ebdc496a13f25911321a1b4a09f
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2018 13:52:56 +0000 (20 13:52 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2018 13:52:56 +0000 (20 13:52 +0000)
tree8ec78c4ea569b42935b65702e9f9931056a22a4a
parenta789e5c71c2a4937708232040e84facd5d36c6b1
compiler: look through aliases for type compatibility

    Aliases are supposed to be identical to the type being aliased, so
    questions about type compatibility need to always ignore aliases,
    except for error messages involving the type name.

    The test case for this is https://golang.org/cl/94995.

    Fixes golang/go#23912

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257845 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/types.cc