Yet another fix. ChkUnOper can also be called with a COERCION operator,
authorceriel <none@none>
Thu, 28 Jan 1988 14:05:34 +0000 (14:05 +0000)
committerceriel <none@none>
Thu, 28 Jan 1988 14:05:34 +0000 (14:05 +0000)
when NEW and DISPOSE are expanded

lang/m2/comp/chk_expr.c

index bfb7744..c567487 100644 (file)
@@ -914,6 +914,7 @@ ChkUnOper(expp)
        register t_node *right = expp->nd_right;
        register t_type *tpr;
 
+       if (expp->nd_symb == COERCION) return 1;
        if (expp->nd_symb == '(') {
                *expp = *right;
                free_node(right);