https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97864
--- Comment #12 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> --- I would bet that it's the same issue that was fixed by: https://github.com/gcc-mirror/gcc/commit/81372618277bfae682434fcdc80b311ee6007476 2020-11-11 Jakub Jelinek <ja...@redhat.com> PR fortran/97768 gcc/fortran/ * misc.c (gfc_typename): Use ex->value.character.length only if ex->expr_type == EXPR_CONSTANT. If ex->ts.deferred, print : instead of length. If ex->ts.u.cl && ex->ts.u.cl->length == NULL, print * instead of length. Otherwise if character length is non-constant, print just CHARACTER or CHARACTER(KIND=N).