¶1On Motion for Rehearing.
¶2In a motion for rehearing, the defendant contends that the trial court improperly sentenced him as a recidivist because in doing so it considered convictions not yet final. The position adopted by the state at the sentencing hearing was that the offenses charged in the *599indictment for which the defendant was on trial could be considered in determining his status as a recidivist. The transcript suggests that the trial court accepted this argument, although it was clearly erroneous. See OCGA § 17-10-7 (Code Ann. § 27-2511); Croker v. Smith, 225 Ga. 529 (4) (169 SE2d 787) (1969).
¶3However, the state also established without objection that the defendant had been convicted and sentenced to confinement for a 1977 robbery, and this fact was properly alleged in the indictment. Thus, the trial court was both authorized and required to sentence the defendant as a second offender pursuant to OCGA § 17-10-7 (Code Ann. § 27-2511).
¶4Motion for rehearing denied.