compiler: look through aliases when looking for methods
commitba2d90b2df8bd3ac5a9c41f138bd76e486cadd50
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Jan 2018 23:13:31 +0000 (25 23:13 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Jan 2018 23:13:31 +0000 (25 23:13 +0000)
tree62d1d4ee4dddd626ab695de3285ec42ac4e5d60f
parent15e069d11959c684a9ecce7c21e2db8c6527edec
compiler: look through aliases when looking for methods

    Add a Type::is_alias method to remove some existing loops and avoid
    adding a new one.

    Test case is https://golang.org/cl/89935.

    Fixes golang/go#23489

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

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