https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123949
--- Comment #9 from Christopher Albert <albert at tugraz dot at> --- Reproduced the aarch64 LTO bootstrap failure on a Hetzner CAX41 (16 ARM cores, aarch64, Ubuntu 24.04) with --with-build-config=bootstrap-lto at commit 3a17cc11c. Without follow-up fix: FAIL: gfortran.dg/pr123949.f90 -O (internal compiler error: in gfc_conv_constant, at fortran/trans-const.cc:425) Root cause: Missing gfc_init_se(&tse, NULL) in trans-array.cc ALLOCATE_PDT_COMP case (line 11137). The adjacent KIND/LEN and pdt_string blocks both initialize tse, but this block left it uninitialized. With LTO bootstrap on aarch64, stack garbage in tse.ss triggers the assert in gfc_conv_constant. Fix: One-line addition of gfc_init_se(&tse, NULL) before the gfc_conv_expr_type call. Patch on fork branch pr123949-init-se-fix. With fix: PASS: gfortran.dg/pr123949.f90 -O — bootstrap completes successfully. So we should merge that one too before closing the issue.
