| Index: src/cmd/gc/typecheck.c |
| =================================================================== |
| --- a/src/cmd/gc/typecheck.c |
| +++ b/src/cmd/gc/typecheck.c |
| @@ -68,7 +68,7 @@ |
| Node *n, *l, *r; |
| NodeList *args; |
| int lno, ok, ntop; |
| - Type *t, *missing, *have; |
| + Type *t, *tp, *missing, *have; |
| Sym *sym; |
| Val v; |
| char *why; |
| @@ -520,6 +520,7 @@ |
| ok = Erv; |
| goto ret; |
| } |
| + tp = t; |
| if(isptr[t->etype] && t->type->etype != TINTER) { |
| t = t->type; |
| if(t == T) |
| @@ -531,7 +532,7 @@ |
| if(lookdot(n, t, 1)) |
| yyerror("%#N undefined (cannot refer to unexported field or method %S)", n, n->right->sym); |
| else |
| - yyerror("%#N undefined (type %T has no field or method %S)", n, t, n->right->sym); |
| + yyerror("%#N undefined (type %T has no field or method %S)", n, tp, n->right->sym); |
| goto error; |
| } |
| switch(n->op) { |