pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:3351:    2, "Soft cast of %O to %O isn't a valid cast.");    } else {    yytype_report(REPORT_ERROR, NULL, 0, type_type_string,    NULL, 0, CDR(n)->type, 0,    "Soft cast with non-type.");    }    }    /* FALL_THROUGH */    case F_CAST:    /* Type-field is correct by definition. */ +  if (old_type) {    copy_pike_type(n->type, old_type); -  +  } else { +  yyerror("Cast to invalid type."); +  copy_pike_type(n->type, mixed_type_string); +  }    break;       case F_LAND:    case F_LOR:    if (!CAR(n) || CAR(n)->type == void_type_string) {    yyerror("Conditional uses void expression.");    copy_pike_type(n->type, mixed_type_string);    break;    }