go/parser: parses comma terminated fields (original) (raw)

gotype successfully parses (via go/parser) the following program:

package a type T struct{int,}

while gc says:

go.go:2: syntax error: unexpected }, expecting name

As far as I see, gc is right. I don't see where spec allows commas there.

on commit af81789