If a prisoner in a state, local or community correctional facility or in the custody of an employee thereof commits any felony other than those specified in §§ 18.2-31, 18.2-55 and 53.1-203, which is punishable by confinement in a state correctional facility or by death, such prisoner shall be subject to the same punishment therefor as if he were not a prisoner.
Code 1950, § 53-294; 1970, c. 648; 1975, c. 588; 1982, c. 636.