mirror of
https://github.com/golang/go
synced 2024-11-25 11:17:56 -07:00
bug36
fixed error in symbol table in the second forward declaration of a function. SVN=114572
This commit is contained in:
parent
e73674b291
commit
87278c26e2
@ -297,7 +297,6 @@ funchdr(Node *n)
|
||||
n->nname = on;
|
||||
n->type = on->type;
|
||||
n->sym = s;
|
||||
s->oname = n;
|
||||
if(debug['d'])
|
||||
print("forew var-dcl %S %T\n", n->sym, n->type);
|
||||
}
|
||||
|
@ -855,7 +855,7 @@ fntypeh:
|
||||
$$ = functype(N, $3, $5);
|
||||
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
|
||||
{
|
||||
if($3 == N || $3->op == OLIST)
|
||||
|
Loading…
Reference in New Issue
Block a user