diff options
Diffstat (limited to 'src/cmd/gc/dcl.c')
-rw-r--r-- | src/cmd/gc/dcl.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/cmd/gc/dcl.c b/src/cmd/gc/dcl.c index 38174b828..162495e80 100644 --- a/src/cmd/gc/dcl.c +++ b/src/cmd/gc/dcl.c @@ -495,14 +495,6 @@ loop: if(n->op != ODCLFIELD || n->type == T) fatal("stotype: oops %N\n", n); - switch(n->type->etype) { - case TCHAN: - case TMAP: - case TSTRING: - yyerror("%T can exist only in pointer form", n->type); - break; - } - switch(n->val.ctype) { case CTSTR: note = n->val.u.sval; @@ -749,15 +741,6 @@ addvar(Node *n, Type *t, int ctxt) pushdcl(s); } - if(t != T) { - switch(t->etype) { - case TCHAN: - case TMAP: - case TSTRING: - yyerror("%T can exist only in pointer form", t); - } - } - redeclare("variable", s); s->vargen = gen; s->oname = n; |