compiler: look through aliases when looking for methods
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 25 Jan 2018 23:13:31 +0000 (23:13 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 25 Jan 2018 23:13:31 +0000 (23:13 +0000)
commit1bfbe9adbc554930163eb551f9904cf4fe096696
tree62d1d4ee4dddd626ab695de3285ec42ac4e5d60f
parenta14e122ae2ecf27a8cace7e0d1dda8606d5e4eca
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

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