https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87711
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gcc dot gnu.org --- Comment #3 from anlauf at gcc dot gnu.org --- (In reply to kargl from comment #2) For some reason the simplification of LEN_TRIM "forgets" that it is an elemental function: program p print *, len_trim( 'abc' ) ! OK print *, len_trim(['abc'] ) ! OK print *, len_trim( 'abc' , kind=8) ! OK print *, len_trim(['abc'], kind=8) ! ICE end