Applications of a theorem of H. Cramér to the Selberg class