]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/gc: add missing verb to Yyerror
authorSebastien Binet <seb.binet@gmail.com>
Fri, 27 Feb 2015 19:42:18 +0000 (20:42 +0100)
committerRob Pike <r@golang.org>
Fri, 27 Feb 2015 20:07:53 +0000 (20:07 +0000)
commitd24e62f2fbeded2b27684d508236be7e3e931355
treef8711db04f9ad358d1c8c8b02c8407da30dd008d
parent90dbd428e5d1755bd1945ed978fea483ba557de1
cmd/internal/gc: add missing verb to Yyerror

When a function had no body, Yyerror was called with an extra
argument, leading to extraneous printouts.
Add the missing verb to the Yyerror call and display the name of the
bodiless function.

Fixes #10030

Change-Id: I76d76c4547fb9cad1782cb11f7a5c63065a6e0c5
Reviewed-on: https://go-review.googlesource.com/6263
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/internal/gc/pgen.go