A mechanism of ion heating due to local ionization in a plasma flow with hot electrons and initially cold ions is described. It is shown that the ion temperature can increase significantly as the ions are accelerated to the ion-acoustic speed, provided there is significant ionization in the acceleration region. The fluid model describing ionization ion heating includes particle, momentum, and energy balance equations for ion species. Using this model with parameters characteristic of gas-dynamic electron cyclotron resonance ͑ECR͒ ion source SMIS 37 yields much higher effective ion temperature than can be attributed to the electron-ion collisional energy transfer, typically considered for classical ECR ion sources. This theoretical result is found to be in agreement with findings of recent experiments carried out in SMIS 37.