diff options
author | Andre Vehreschild <vehre@gcc.gnu.org> | 2024-07-11 10:07:12 +0200 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:05:44 +0200 |
commit | 067ada0bfa02f39bc26324f59fe3158c6c6c8969 (patch) | |
tree | 570e858fba4b5e4a4c1a5d3ec12e375e447411fd /gcc/cp/tree.cc | |
parent | 6a5ba2f4bc9d176efe46603369bb8c8ed4132ca4 (diff) | |
download | gcc-067ada0bfa02f39bc26324f59fe3158c6c6c8969.zip gcc-067ada0bfa02f39bc26324f59fe3158c6c6c8969.tar.gz gcc-067ada0bfa02f39bc26324f59fe3158c6c6c8969.tar.bz2 |
Fix Rejects allocatable coarray passed as a dummy argument [88624]
Coarray parameters of procedures/functions need to be dereffed, because
they are references to the descriptor but the routine expected the
descriptor directly.
PR fortran/88624
gcc/fortran/ChangeLog:
* trans-expr.cc (gfc_conv_procedure_call): Treat
pointers/references (e.g. from parameters) correctly by derefing
them.
gcc/testsuite/ChangeLog:
* gfortran.dg/coarray/dummy_1.f90: Add calling function trough
function.
* gfortran.dg/pr88624.f90: New test.
Diffstat (limited to 'gcc/cp/tree.cc')
0 files changed, 0 insertions, 0 deletions