Recognize gccgo error messages.

(Amusing side note: the GNU coding standards say: Please do
not use the term "illegal" to refer to erroneous input to a
computer program.  Please use "invalid" for this, and reserve
the term "illegal" for activities prohibited by law.)

indirect1.go:35:3: error: argument must be string or array or slice or map
indirect1.go:36:3: error: argument must be string or array or slice or map
indirect1.go:38:3: error: argument must be string or array or slice or map
indirect1.go:41:3: error: argument must be string or array or slice or map
indirect1.go:42:3: error: argument must be string or array or slice or map
indirect1.go:44:3: error: argument must be string or array or slice or map
indirect1.go:55:3: error: argument must be string or array or slice or map
indirect1.go:56:3: error: argument must be string or array or slice or map
indirect1.go:58:3: error: argument must be string or array or slice or map
indirect1.go:61:3: error: argument must be array or slice
indirect1.go:62:3: error: argument must be array or slice
indirect1.go:64:3: error: argument must be array or slice

R=rsc
DELTA=12  (0 added, 0 deleted, 12 changed)
OCL=31081
CL=31088
This commit is contained in:
Ian Lance Taylor 2009-07-02 15:54:57 -07:00
parent b70563aa0a
commit f1428b2910

View file

@ -36,16 +36,16 @@ func f()
// it decides there are type errors.
x :=
len(m0)+
len(m1)+ // ERROR "illegal"
len(m2)+ // ERROR "illegal"
len(m1)+ // ERROR "illegal|must be"
len(m2)+ // ERROR "illegal|must be"
len(m3)+
len(m4)+ // ERROR "illegal"
len(m4)+ // ERROR "illegal|must be"
len(s0)+
len(s1)+ // ERROR "illegal"
len(s2)+ // ERROR "illegal"
len(s1)+ // ERROR "illegal|must be"
len(s2)+ // ERROR "illegal|must be"
len(s3)+
len(s4)+ // ERROR "illegal"
len(s4)+ // ERROR "illegal|must be"
len(a0)+
len(a1)+
@ -56,14 +56,14 @@ func f()
cap(a2)+
len(b0)+
len(b1)+ // ERROR "illegal"
len(b2)+ // ERROR "illegal"
len(b1)+ // ERROR "illegal|must be"
len(b2)+ // ERROR "illegal|must be"
len(b3)+
len(b4)+ // ERROR "illegal"
len(b4)+ // ERROR "illegal|must be"
cap(b0)+
cap(b1)+ // ERROR "illegal"
cap(b2)+ // ERROR "illegal"
cap(b1)+ // ERROR "illegal|must be"
cap(b2)+ // ERROR "illegal|must be"
cap(b3)+
cap(b4); // ERROR "illegal"
cap(b4); // ERROR "illegal|must be"
}