aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/io.c')
-rw-r--r--gcc/fortran/io.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c
index aab5d39..725e2da 100644
--- a/gcc/fortran/io.c
+++ b/gcc/fortran/io.c
@@ -1063,6 +1063,13 @@ resolve_tag (const io_tag * tag, gfc_expr * e)
return FAILURE;
}
}
+ else if (e->ts.type == BT_INTEGER)
+ {
+ gfc_error ("scalar '%s' FORMAT tag at %L is not an ASSIGNED "
+ "variable", gfc_basic_typename (e->ts.type), &e->where);
+ return FAILURE;
+ }
+
return SUCCESS;
}
else