From bcd07252e1d2ff4977762462f10018b5def328b6 Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Wed, 24 Sep 2008 16:20:01 -0700 Subject: [PATCH] export R=r OCL=15805 CL=15805 --- src/cmd/gc/export.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cmd/gc/export.c b/src/cmd/gc/export.c index 8bc326ebbc6..d4e5b0d193c 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; }