I forgot to commit this testsuite patch that corresponds to the recent
patch for receiver parameters
(https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01591.html).  Now
committed to mainline.

Ian

Index: test/fixedbugs/bug299.go
===================================================================
--- test/fixedbugs/bug299.go	(revision 216257)
+++ test/fixedbugs/bug299.go	(working copy)
@@ -21,7 +21,9 @@ type T struct {
 // legal according to spec
 func (p T) m() {}
 
-// not legal according to spec
-func (p (T)) f() {}   // ERROR "parenthesize|expected"
-func (p *(T)) g() {}  // ERROR "parenthesize|expected"
-func (p (*T)) h() {}  // ERROR "parenthesize|expected"
+// now legal according to spec
+func (p (T)) f() {}
+func (p *(T)) g() {}
+func (p (*T)) h() {}
+func (p (*(T))) i() {}
+func ((T),) j() {}

Reply via email to