fixed problem with extern declarations

This commit is contained in:
ceriel 1991-04-09 10:15:48 +00:00
parent e5b52ce56f
commit e096bc3fb3

View file

@ -317,7 +317,7 @@ declare_idf(ds, dc, lvl)
break;
case L_FORMAL2: /* formal definition */
default: /* local */
error("%s redeclared", idf->id_text);
if (sc != EXTERN) error("%s redeclared", idf->id_text);
break;
}
}