Commit 59e2e54e authored by Russ Cox's avatar Russ Cox

fix bug195

R=ken
OCL=33700
CL=33700
parent e1c5d179
...@@ -808,7 +808,7 @@ stotype(NodeList *l, int et, Type **t) ...@@ -808,7 +808,7 @@ stotype(NodeList *l, int et, Type **t)
if(et == TINTER && n->left == N) { if(et == TINTER && n->left == N) {
// embedded interface - inline the methods // embedded interface - inline the methods
if(n->type->etype != TINTER) { if(n->type->etype != TINTER) {
yyerror("interface contains embedded non-interface %T", t); yyerror("interface contains embedded non-interface %T", n->type);
continue; continue;
} }
for(t1=n->type->type; t1!=T; t1=t1->down) { for(t1=n->type->type; t1!=T; t1=t1->down) {
......
...@@ -178,9 +178,6 @@ errchk: bugs/bug193.go:14: missing expected error: 'shift' ...@@ -178,9 +178,6 @@ errchk: bugs/bug193.go:14: missing expected error: 'shift'
bugs/bug194.go:15: array index must be non-negative integer constant bugs/bug194.go:15: array index must be non-negative integer constant
BUG should compile and run BUG should compile and run
=========== bugs/bug195.go
bugs/bug195.go:9: BUG: errchk: compiler crashed
=========== bugs/bug196.go =========== bugs/bug196.go
too many calls: 5 too many calls: 5
panic PC=xxx panic PC=xxx
......
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