1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:14:40 -07:00
fixed error in symbol table in
the second forward declaration of
a function.

SVN=114572
This commit is contained in:
Ken Thompson 2008-04-01 12:48:20 -07:00
parent e73674b291
commit 87278c26e2
2 changed files with 1 additions and 2 deletions

View File

@ -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);
}

View File

@ -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)