https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123949
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jerry DeLisle <[email protected]>: https://gcc.gnu.org/g:33b945b4e637f4e46e0c3bc42bded2949124c940 commit r16-7635-g33b945b4e637f4e46e0c3bc42bded2949124c940 Author: Christopher Albert <[email protected]> Date: Sun Feb 22 22:07:19 2026 +0100 fortran: Initialize gfc_se in PDT component allocation [PR123949] Add missing gfc_init_se call for the default initializer case in ALLOCATE_PDT_COMP. The adjacent KIND/LEN block (line 11118) and pdt_string block (line 11149) both initialize tse, but this block left it uninitialized, causing undefined behavior when tse.ss contained stack garbage. Exposed as an ICE in gfc_conv_constant (trans-const.cc:425) on aarch64 with LTO bootstrap. PR fortran/123949 gcc/fortran/ChangeLog: * trans-array.cc (structure_alloc_comps): Add missing gfc_init_se call in case ALLOCATE_PDT_COMP for scalar component default initializer. Signed-off-by: Christopher Albert <[email protected]>
