https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87851
--- Comment #5 from Janne Blomqvist <jb at gcc dot gnu.org> --- (In reply to Dominique d'Humieres from comment #4) > > Yes, but the return type on the library side changed. > > When and how do you see that? As part of my patch to change the string length type, in the library the typedef gfc_charlen_type changed from int to size_t. I'd guess whatever issue here is, it was here before as well, it was just harder to hit since the string length type happened to match default kind integer. That being said, looking at the tree dump Thomas posted in #c0, the frontend has correctly inserted a typecast to default kind integer just as it should.