1
0
mirror of https://github.com/golang/go synced 2024-11-20 04:04:41 -07:00

gc: line number bug fix

R=ken2
CC=golang-dev
https://golang.org/cl/1243044
This commit is contained in:
Russ Cox 2010-05-20 22:19:50 -07:00
parent 333002bf53
commit b03d7f4d8f

View File

@ -221,7 +221,7 @@ walkdef(Node *n)
if(n->op == ONONAME) {
if(!n->diag) {
n->diag = 1;
yyerror("undefined: %S", n->sym);
yyerrorl(n->lineno, "undefined: %S", n->sym);
}
return;
}