diff options
author | Harald Anlauf <anlauf@gmx.de> | 2021-10-26 20:54:41 +0200 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2021-10-26 20:54:41 +0200 |
commit | cfcb27cfcb1d32b8cf7bc463cc1fc5cacae8d199 (patch) | |
tree | db7b38be3be7f12ad248ee521ff17448d2ca1722 /gcc/testsuite | |
parent | 99af0b2f0fe1c0dc8c6d558157e700326d52816a (diff) | |
download | gcc-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/testsuite')
-rw-r--r-- | gcc/testsuite/gfortran.dg/pdt_4.f03 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gfortran.dg/pdt_4.f03 b/gcc/testsuite/gfortran.dg/pdt_4.f03 index c1af65a..37412e4 100644 --- a/gcc/testsuite/gfortran.dg/pdt_4.f03 +++ b/gcc/testsuite/gfortran.dg/pdt_4.f03 @@ -28,9 +28,9 @@ end module type :: bad_pdt (a,b, c, d) ! { dg-error "does not have a component" } real, kind :: a ! { dg-error "must be INTEGER" } - INTEGER(8), kind :: b ! { dg-error "be default integer kind" } + INTEGER(8), kind :: b real, LEN :: c ! { dg-error "must be INTEGER" } - INTEGER(8), LEN :: d ! { dg-error "be default integer kind" } + INTEGER(8), LEN :: d end type type :: mytype (a,b) |