compiler: finalize types parsed for inline functions
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 27 Nov 2018 21:34:44 +0000 (21:34 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 27 Nov 2018 21:34:44 +0000 (21:34 +0000)
commit34ea95978d0f2af4adff2de7fd9bd32e4526b0d1
treef5a5d3c4a9b0d8aa52611022a119796176545b72
parent80d7d30d2483025baff22fde3b36ea227639a4e7
compiler: finalize types parsed for inline functions

    When we inline functions, we may parse types that we have not seen
    before inlining.  Inlining runs after the finalize_methods pass, so
    those types will not be finalized, meaning that we don't have an
    accurate list of which methods they support.  Explicitly finalize them
    when we parse them.

    Reviewed-on: https://go-review.googlesource.com/c/150068

From-SVN: r266530
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/import.cc
gcc/go/gofrontend/import.h