a few minor fixes
authorceriel <none@none>
Thu, 17 Oct 1991 13:27:53 +0000 (13:27 +0000)
committerceriel <none@none>
Thu, 17 Oct 1991 13:27:53 +0000 (13:27 +0000)
lang/cem/cemcom.ansi/ch3.c
lang/cem/cemcom.ansi/declar.g

index 39df50c..51b15ec 100644 (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) {
index 7a5e8ff..00c3a8b 100644 (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);
+               }
        }
 ;