a few minor fixes
This commit is contained in:
parent
237fb752e5
commit
82bad86ee6
|
@ -429,7 +429,7 @@ equal_type(tp, otp, qual_lev, diag)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (qual_lev >= 0 && tp->tp_typequal != otp->tp_typequal) {
|
if (qual_lev >= 0 && tp->tp_typequal != otp->tp_typequal) {
|
||||||
strict("illegal qualifiers");
|
strict("missing or illegal qualifiers");
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (tp->tp_fund) {
|
switch (tp->tp_fund) {
|
||||||
|
|
|
@ -356,6 +356,9 @@ formal(struct formal **fmp;)
|
||||||
new->fm_idf = idf;
|
new->fm_idf = idf;
|
||||||
new->next = *fmp;
|
new->next = *fmp;
|
||||||
*fmp = new;
|
*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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue