https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101919
Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aldot at gcc dot gnu.org --- Comment #3 from Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> --- if c does not contain trailing blank characters then len_trim(c) can return up to 100, yes. So the warning would be correct in this case as it would read beyond c (at least in C). Coding error? if (c(1:12) == 'Accumulated ') c = c(13:len_trim(c)) should maybe subtract about 13 from the upper bound of the right hand side?