If any person attempts to commit an offense which is punishable with death, he shall be guilty of a Class 2 felony. History Code 1950, § 18.1-16; 1960, c. 358; 1975, cc. 14, 15; 1985, c. 280.