https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100537

--- Comment #11 from Jiu Fu Guo <guojiufu at gcc dot gnu.org> ---
Had a quick regression test on the patch:
issue4458.go which pass before, but fail on this patch.
Compiling message changed from "error: method expression requires named type or
pointer to named type" to "error: method 'foo' is ambiguous"

I'm not sure if this message change is expected or not.

issue4458.go:
package main

type T struct{}

func (T) foo() {}

func main() {
        av := T{}
        pav := &av
        (**T).foo(&pav) // ERROR "no method .*foo|requires named type or
pointer to named"
}

Reply via email to