Fortran: do not restrict PDT KIND and LEN type parameters to default integer
authorHarald Anlauf <anlauf@gmx.de>
Tue, 26 Oct 2021 18:54:41 +0000 (20:54 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 26 Oct 2021 18:54:41 +0000 (20:54 +0200)
commitcfcb27cfcb1d32b8cf7bc463cc1fc5cacae8d199
treedb7b38be3be7f12ad248ee521ff17448d2ca1722
parent99af0b2f0fe1c0dc8c6d558157e700326d52816a
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.
gcc/fortran/decl.c
gcc/testsuite/gfortran.dg/pdt_4.f03