The influence of electron-beam irradiation on defects in 4H-SiC diode structures was investigated by cathodoluminescence (CL) microscopy and spectroscopy. In addition to threading edge and screw dislocations, two types of stacking faults (SFs) were characterized by their emission energy, geometric shape, and the sensitivity of electron-beam irradiation. The SFs at λ = 425 nm (2.92 eV) expand from the surface of basal plane dislocation with line direction [11-20] and change their geometric shape by electron-beam irradiation. The SFs at λ = 471 nm (2.63 eV) are only slightly influenced by electron-beam irradiation. The former corresponds to the Shockley-type SFs previously observed in the degraded p-i-n diodes, and the latter to in-grown SFs with 8H structure. The panchromatic CL images constructed by the sum of monochromatic CL images suggest that there are nonradiative recombination centers in the vicinity of Shockley-type SFs. The nucleation sites and the driving force for SF expansion are discussed.