aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/decl.c
diff options
context:
space:
mode:
authorHarald Anlauf <anlauf@gmx.de>2021-10-26 20:54:41 +0200
committerHarald Anlauf <anlauf@gmx.de>2021-10-26 20:54:41 +0200
commitcfcb27cfcb1d32b8cf7bc463cc1fc5cacae8d199 (patch)
treedb7b38be3be7f12ad248ee521ff17448d2ca1722 /gcc/fortran/decl.c
parent99af0b2f0fe1c0dc8c6d558157e700326d52816a (diff)
downloadgcc-cfcb27cfcb1d32b8cf7bc463cc1fc5cacae8d199.zip
gcc-cfcb27cfcb1d32b8cf7bc463cc1fc5cacae8d199.tar.gz
gcc-cfcb27cfcb1d32b8cf7bc463cc1fc5cacae8d199.tar.bz2
Fortran: do not restrict PDT KIND and LEN type parameters to default integer
gcc/fortran/ChangeLog: PR fortran/102917 * decl.c (match_attr_spec): Remove invalid integer kind checks on KIND and LEN attributes of PDTs. gcc/testsuite/ChangeLog: PR fortran/102917 * gfortran.dg/pdt_4.f03: Adjust testcase.
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r--gcc/fortran/decl.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c
index 6043e10..ce61e53 100644
--- a/gcc/fortran/decl.c
+++ b/gcc/fortran/decl.c
@@ -5592,14 +5592,6 @@ match_attr_spec (void)
m = MATCH_ERROR;
goto cleanup;
}
- if (current_ts.kind != gfc_default_integer_kind)
- {
- gfc_error ("Component with KIND attribute at %C must be "
- "default integer kind (%d)",
- gfc_default_integer_kind);
- m = MATCH_ERROR;
- goto cleanup;
- }
}
else if (d == DECL_LEN)
{
@@ -5619,14 +5611,6 @@ match_attr_spec (void)
m = MATCH_ERROR;
goto cleanup;
}
- if (current_ts.kind != gfc_default_integer_kind)
- {
- gfc_error ("Component with LEN attribute at %C must be "
- "default integer kind (%d)",
- gfc_default_integer_kind);
- m = MATCH_ERROR;
- goto cleanup;
- }
}
else
{