diff options
author | Harald Anlauf <anlauf@gmx.de> | 2023-04-20 21:47:34 +0200 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2023-04-22 20:22:54 +0200 |
commit | eb385a4801c45a1c0574810b45fce9e712d34566 (patch) | |
tree | 61e031ffdc3a065db86a30340ff51d494aa9baf3 /gcc/tree-ssa-phiopt.cc | |
parent | 7a0cbaf7f802df209840d78740ffc749dadd1ce3 (diff) | |
download | gcc-eb385a4801c45a1c0574810b45fce9e712d34566.zip gcc-eb385a4801c45a1c0574810b45fce9e712d34566.tar.gz gcc-eb385a4801c45a1c0574810b45fce9e712d34566.tar.bz2 |
Fortran: function results never have the ALLOCATABLE attribute [PR109500]
Fortran 2018 8.5.3 (ALLOCATABLE attribute) explains in Note 1 that the
result of referencing a function whose result variable has the ALLOCATABLE
attribute is a value that does not itself have the ALLOCATABLE attribute.
gcc/fortran/ChangeLog:
PR fortran/109500
* interface.cc (gfc_compare_actual_formal): Reject allocatable
functions being used as actual argument for allocable dummy.
gcc/testsuite/ChangeLog:
PR fortran/109500
* gfortran.dg/allocatable_function_11.f90: New test.
Co-authored-by: Steven G. Kargl <kargl@gcc.gnu.org>
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions