diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2022-09-20 23:06:19 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2022-09-20 23:06:19 +0200 |
commit | 59f6dea963b5f7a6b9ced325200359b4831e7fa7 (patch) | |
tree | 2811f5823664b0cb35eee7b046ff9f310d3acd96 /gcc/value-range.cc | |
parent | 5976fbf9d5dd9542fcb82eebb2185886fd52d000 (diff) | |
download | gcc-59f6dea963b5f7a6b9ced325200359b4831e7fa7.zip gcc-59f6dea963b5f7a6b9ced325200359b4831e7fa7.tar.gz gcc-59f6dea963b5f7a6b9ced325200359b4831e7fa7.tar.bz2 |
Fortran: F2018 type(*),dimension(*) with scalars [PR104143]
Assumed-size dummy arguments accept arrays and array elements as actual
arguments. There are also a few exceptions when real scalars are permitted.
Since F2018, this includes scalar arguments to assumed-type dummies; while
type(*) was added in TS29113, this change is only in F2018 itself.
PR fortran/104143
gcc/fortran/ChangeLog:
* interface.cc (compare_parameter): Permit scalar args to
'type(*), dimension(*)'.
gcc/testsuite/ChangeLog:
* gfortran.dg/c-interop/c407b-2.f90: Remove dg-error.
* gfortran.dg/assumed_type_16.f90: New test.
* gfortran.dg/assumed_type_17.f90: New test.
Diffstat (limited to 'gcc/value-range.cc')
0 files changed, 0 insertions, 0 deletions