https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87851 --- Comment #10 from anlauf at gcc dot gnu.org --- Forget comment#8 and comment#9. The standard declares the default kind of LEN_TRIM to be that of default integer.