Giant dipole resonance in highly excited nuclei