a few minor fixes

This commit is contained in:
ceriel 1991-10-17 13:27:53 +00:00
parent 237fb752e5
commit 82bad86ee6
2 changed files with 4 additions and 1 deletions

View file

@ -429,7 +429,7 @@ equal_type(tp, otp, qual_lev, diag)
}
if (qual_lev >= 0 && tp->tp_typequal != otp->tp_typequal) {
strict("illegal qualifiers");
strict("missing or illegal qualifiers");
}
switch (tp->tp_fund) {

View file

@ -356,6 +356,9 @@ formal(struct formal **fmp;)
new->fm_idf = idf;
new->next = *fmp;
*fmp = new;
if (idef->id_def && idef->id_def->df_sc == TYPEDEF) {
error("typedef name %s may not be redeclared as a parameter", idf->id_text);
}
}
;