Commit b03d7f4d authored by Russ Cox's avatar Russ Cox

gc: line number bug fix

R=ken2
CC=golang-dev
https://golang.org/cl/1243044
parent 333002bf
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment