# HG changeset patch # User Mario de Sousa # Date 1301648602 -3600 # Node ID bcb92f5b9a9196b0b10d844ee8f63bfc3bf72300 # Parent 197ba42d78b251f2512e1335ed888ac57abcbf0c Adding some debug info diff -r 197ba42d78b2 -r bcb92f5b9a91 stage3/visit_expression_type.cc --- a/stage3/visit_expression_type.cc Thu Mar 31 21:06:36 2011 +0100 +++ b/stage3/visit_expression_type.cc Fri Apr 01 10:03:22 2011 +0100 @@ -650,16 +650,19 @@ bool error = false; if (!(this->*is_data_type)(left_type)) { + if (debug) printf("visit_expression_type_c::compute_expression(): invalid left_type\n"); if (left_expr != NULL) STAGE3_ERROR(left_expr, left_expr, "Invalid data type of left operand."); error = true; } if (!(this->*is_data_type)(right_type)) { + if (debug) printf("visit_expression_type_c::compute_expression(): invalid right_type\n"); if (right_expr != NULL) STAGE3_ERROR(right_expr, right_expr, "Invalid data type of right operand."); error = true; } if (!is_compatible_type(left_type, right_type)) { + if (debug) printf("visit_expression_type_c::compute_expression(): left_type & right_type are incompatible\n"); if ((left_expr != NULL) && (right_expr != NULL)) STAGE3_ERROR(left_expr, right_expr, "Type mismatch between operands."); error = true; @@ -806,7 +809,7 @@ symbol_c *param_type; identifier_c *param_name; function_param_iterator_c fp_iterator(f_decl); - + /* Find the corresponding parameter of the function being called */ param_name = fp_iterator.search(call_param_name); if(param_name == NULL) {