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:
parent
333002bf53
commit
b03d7f4d8f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user