]> Cypherpunks repositories - gostls13.git/commitdiff
bug36
authorKen Thompson <ken@golang.org>
Tue, 1 Apr 2008 19:48:20 +0000 (12:48 -0700)
committerKen Thompson <ken@golang.org>
Tue, 1 Apr 2008 19:48:20 +0000 (12:48 -0700)
fixed error in symbol table in
the second forward declaration of
a function.

SVN=114572

src/c/dcl.c
src/c/go.y

index abf6b7ac731e8e1816eda3b802dca93a45349f40..3c89e75d33dd338834948c6716e1b3d5094abf25 100644 (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);
        }
index 9d4433cf9d7a91afb0e48f754060b68a2b76312b..50fd4f5684c9f13157e21bbb1aee23e3a6e9320a 100644 (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)