aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r--gcc/fortran/decl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index 45a0442..1358cdcf 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -1311,6 +1311,10 @@ gfc_match_old_kind_spec (gfc_typespec * ts)
return MATCH_ERROR;
}
+ if (gfc_notify_std (GFC_STD_GNU, "Nonstandard type declaration %s*%d at %C",
+ gfc_basic_typename (ts->type), original_kind) == FAILURE)
+ return MATCH_ERROR;
+
return MATCH_YES;
}
@@ -1616,6 +1620,10 @@ match_type_spec (gfc_typespec * ts, int implicit_flag)
if (gfc_match (" double complex") == MATCH_YES)
{
+ if (gfc_notify_std (GFC_STD_GNU, "DOUBLE COMPLEX at %C does not "
+ "conform to the Fortran 95 standard") == FAILURE)
+ return MATCH_ERROR;
+
ts->type = BT_COMPLEX;
ts->kind = gfc_default_double_kind;
return MATCH_YES;