Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(142)

Unified Diff: src/cmd/gc/typecheck.c

Issue 3435042: code review 3435042: Fixes issue 1324. (Closed)
Patch Set: code review 3435042: Fixes issue 1324. Created 1 year, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 855:fffdfa546f68