Open
Description
For
$ cat y.go
package p
func f(x ..int) {}
current gccgo reports the errors:
$ gccgo -c y.go
y.go:3:10: error: expected package
3 | func f(x ..int) {}
| ^
y.go:3:8: error: invalid named/anonymous mix
3 | func f(x ..int) {}
| ^
I would have expected an error at the ..
as it is not a valid token.
For the reference, cmd/compile reports for the same file:
$ go tool compile y.go
y.go:3:11: syntax error: unexpected ., expecting name
which seems more sensible.