]> git.ipfire.org Git - thirdparty/gcc.git/commit
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>
Wed, 27 Oct 2021 19:25:39 +0000 (21:25 +0200)
commit5782bacacada41c0240f5aceb42dcdf78e7042da
tree7eeaf888d00f9f2a1bcd876d1cb66ba2cdf564c6
parent70c3fa5057421a02d7ef1ab7fde7d5ba829e0d79
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.

(cherry picked from commit cfcb27cfcb1d32b8cf7bc463cc1fc5cacae8d199)
gcc/fortran/decl.c
gcc/testsuite/gfortran.dg/pdt_4.f03