Gamma-ray de-excitation of compound-nucleus-reaction products