equal
deleted
inserted
replaced
659 if (right_expr != NULL) |
659 if (right_expr != NULL) |
660 STAGE3_ERROR(right_expr, right_expr, "Invalid data type of operand."); |
660 STAGE3_ERROR(right_expr, right_expr, "Invalid data type of operand."); |
661 error = true; |
661 error = true; |
662 } |
662 } |
663 if (!is_compatible_type(left_type, right_type)) { |
663 if (!is_compatible_type(left_type, right_type)) { |
664 printf("visit_expression_type_c::compute_expression(): left_type & right_type are incompatible\n"); |
|
665 if (debug) printf("visit_expression_type_c::compute_expression(): left_type & right_type are incompatible\n"); |
664 if (debug) printf("visit_expression_type_c::compute_expression(): left_type & right_type are incompatible\n"); |
666 if ((left_expr != NULL) && (right_expr != NULL)) |
665 if ((left_expr != NULL) && (right_expr != NULL)) |
667 STAGE3_ERROR(left_expr, right_expr, "Type mismatch between operands."); |
666 STAGE3_ERROR(left_expr, right_expr, "Type mismatch between operands."); |
668 error = true; |
667 error = true; |
669 } |
668 } |