]> Cypherpunks repositories - gostls13.git/commitdiff
export
authorKen Thompson <ken@golang.org>
Wed, 24 Sep 2008 23:20:01 +0000 (16:20 -0700)
committerKen Thompson <ken@golang.org>
Wed, 24 Sep 2008 23:20:01 +0000 (16:20 -0700)
R=r
OCL=15805
CL=15805

src/cmd/gc/export.c

index 8bc326ebbc60bf759dc1cbf207045e742d2a0e52..d4e5b0d193c3926f7f09d096c4e6f9cc535363dd 100644 (file)
@@ -507,7 +507,9 @@ importaddtyp(Node *ss, Type *t)
 
        s = getimportsym(ss);
        if(s->otype != T && !eqtype(t, s->otype, 0)) {
-               yyerror("import redeclaration of %S %lT => %lT\n", s, s->otype, t);
+               if(!isptrto(t, TFORW))
+                       yyerror("import redeclaration of %lS %lT => %lT\n",
+                               s, s->otype, t);
                s->otype = t;
        }