Hi Andre,
attached patch fixes a missing substring ref on a saved allocatable string. The issue seems to be, that the variable is declared to be a character pointer and not a character array. When using the latter (why not), it works as expected and does not produce any regressions. Regtests ok on x86_64-pc-linux-gnu / F41. Ok for mainlines?
OK for trunk and also for backporting to gcc 15 (it is a 15/16 regression). Best regards Thomas