https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83705
--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- (In reply to Dominique d'Humieres from comment #4) > Is there a way to check that the type of expr->value.character.length in > gfc_conv_substring_expr (fortran/trans-expr.c) is gfc_charlen_t? That is correct, see gfortran.h's definition of gfc_expr, line 2205. This contains struct { gfc_charlen_t length; gfc_char_t *string; } character; gfc_constructor_base constructor; } value;