On Mon, Sep 21, 2020 at 3:54 PM Ian Lance Taylor <i...@golang.org> wrote:
>
> This patch to the Go frontend finalizes methods for type aliases of
> struct types.  Previously we would finalize the methods of the alias
> type itself, but since its a type alias we really need to finalize the
> methods of the aliased type.
>
> This patch also handles method expressions of unnamed struct types.
>
> The test case for both is https://golang.org/cl/251168.
>
> This fixes https://golang.org/issue/38125.
>
> Bootstrapped and tested on x86_64-pc-linux-gnu.  Committed to mainline.

This requires a change to one of the Go tests.  Updated like so,
committed to mainline.

Ian
diff --git a/gcc/testsuite/go.test/test/fixedbugs/issue4458.go 
b/gcc/testsuite/go.test/test/fixedbugs/issue4458.go
index 820f18cb8d7..82b104a0fdf 100644
--- a/gcc/testsuite/go.test/test/fixedbugs/issue4458.go
+++ b/gcc/testsuite/go.test/test/fixedbugs/issue4458.go
@@ -16,5 +16,5 @@ func (T) foo() {}
 func main() {
        av := T{}
        pav := &av
-       (**T).foo(&pav) // ERROR "no method foo|requires named type or pointer 
to named"
+       (**T).foo(&pav) // ERROR "no method|requires named type or pointer to 
named"
 }

Reply via email to