Commit 87278c26 authored by Ken Thompson's avatar Ken Thompson

bug36

fixed error in symbol table in
the second forward declaration of
a function.

SVN=114572
parent e73674b2
...@@ -297,7 +297,6 @@ funchdr(Node *n) ...@@ -297,7 +297,6 @@ funchdr(Node *n)
n->nname = on; n->nname = on;
n->type = on->type; n->type = on->type;
n->sym = s; n->sym = s;
s->oname = n;
if(debug['d']) if(debug['d'])
print("forew var-dcl %S %T\n", n->sym, n->type); print("forew var-dcl %S %T\n", n->sym, n->type);
} }
......
...@@ -855,7 +855,7 @@ fntypeh: ...@@ -855,7 +855,7 @@ fntypeh:
$$ = functype(N, $3, $5); $$ = functype(N, $3, $5);
funcnam($$, nil); funcnam($$, nil);
} }
/* i dont believe that this form is useful for nothing */ /* i dont believe that this form is useful for anything */
| LFUNC '(' oarg_type_list ')' '.' '(' oarg_type_list ')' fnres | LFUNC '(' oarg_type_list ')' '.' '(' oarg_type_list ')' fnres
{ {
if($3 == N || $3->op == OLIST) if($3 == N || $3->op == OLIST)
......
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