From: Ken Thompson Date: Wed, 24 Sep 2008 23:20:01 +0000 (-0700) Subject: export X-Git-Tag: weekly.2009-11-06~3127 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bcd07252e1d2ff4977762462f10018b5def328b6;p=gostls13.git export R=r OCL=15805 CL=15805 --- diff --git a/src/cmd/gc/export.c b/src/cmd/gc/export.c index 8bc326ebbc..d4e5b0d193 100644 --- a/src/cmd/gc/export.c +++ b/src/cmd/gc/export.c @@ -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; }