improved error reporting for initialization expressions

miscellaneous changes
This commit is contained in:
dick
1986-03-14 16:15:16 +00:00
parent 6e53274b6a
commit c80f2c0817
15 changed files with 197 additions and 136 deletions

View File

@@ -180,7 +180,7 @@ EVAL(expr, val, code, true_label, false_label)
C_sbi(tp->tp_size);
break;
case POINTER:
if (EXPRTYPE(rightop) == POINTER)
if (rightop->ex_type->tp_fund == POINTER)
C_sbs(pointer_size);
else {
C_ngi(rightop->ex_type->tp_size);
@@ -645,7 +645,7 @@ EVAL(expr, val, code, true_label, false_label)
conversion(rightop->ex_type, leftop->ex_type);
break;
default:
crash("(EVAL) Bad operator %s\n", symbol2str(oper));
crash("(EVAL) bad operator %s\n", symbol2str(oper));
}
/* If the rvalue of the expression is required but