compiler: don't permit P.M if P is a pointer type
commitbb748b89dfae944fe6e075f1b5d1c3d1501c0948
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 22 Aug 2016 21:30:49 +0000 (22 21:30 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 22 Aug 2016 21:30:49 +0000 (22 21:30 +0000)
treea338751b498276068ff5ae59293747a796105a88
parentd79d6252758099b8424434df6227c8beaea68608
compiler: don't permit P.M if P is a pointer type

    When lowering method expressions of the form "P.M" where
    P is a pointer type (e.g. "type P *T") make sure we examine
    the method set of P and not T during method lookup.

    Fixes golang/go#15722.

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

From-SVN: r239675
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc