compiler: look through aliases for type compatibility
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 20 Feb 2018 13:52:56 +0000 (13:52 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 20 Feb 2018 13:52:56 +0000 (13:52 +0000)
commit731c3fc22d8edb4e9ee6655543017ce76c05bfcc
tree8ec78c4ea569b42935b65702e9f9931056a22a4a
parent6285e915c4f1b73ccbd166cdf4622da8c01a549b
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

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