An extension of a limit theorem of G. Szegö