]> Cypherpunks repositories - gostls13.git/commitdiff
fix bug195
authorRuss Cox <rsc@golang.org>
Sat, 22 Aug 2009 01:07:11 +0000 (18:07 -0700)
committerRuss Cox <rsc@golang.org>
Sat, 22 Aug 2009 01:07:11 +0000 (18:07 -0700)
R=ken
OCL=33700
CL=33700

src/cmd/gc/dcl.c
test/fixedbugs/bug195.go [moved from test/bugs/bug195.go with 100% similarity]
test/golden.out

index 684697fbb9701ffda0b0c8a9938500460d26b403..559cd8d0ad656065b217aa1db6e3910e35d918ae 100644 (file)
@@ -808,7 +808,7 @@ stotype(NodeList *l, int et, Type **t)
                if(et == TINTER && n->left == N) {
                        // embedded interface - inline the methods
                        if(n->type->etype != TINTER) {
-                               yyerror("interface contains embedded non-interface %T", t);
+                               yyerror("interface contains embedded non-interface %T", n->type);
                                continue;
                        }
                        for(t1=n->type->type; t1!=T; t1=t1->down) {
similarity index 100%
rename from test/bugs/bug195.go
rename to test/fixedbugs/bug195.go
index 2ccd4cf0579585e9798cf7273fe3019aaa0e1795..eedbcb2f114eb1623afdeb8b09cf27099c1bc1b1 100644 (file)
@@ -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
 BUG should compile and run
 
-=========== bugs/bug195.go
-bugs/bug195.go:9: BUG: errchk: compiler crashed
-
 =========== bugs/bug196.go
 too many calls: 5
 panic PC=xxx