https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118536
--- Comment #1 from anlauf at gcc dot gnu.org --- Patch: diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c index 0177e052062..59871ac1982 100644 --- a/libgfortran/io/transfer.c +++ b/libgfortran/io/transfer.c @@ -2363,6 +2363,7 @@ formatted_transfer_scalar_write (st_parameter_dt *dtp, bt type, void *p, int kin switch (type) { case BT_INTEGER: + case BT_UNSIGNED: write_i (dtp, f, p, kind); break; case BT_LOGICAL: