aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.cc
diff options
context:
space:
mode:
authorAndre Vehreschild <vehre@gcc.gnu.org>2024-07-11 10:07:12 +0200
committerAndre Vehreschild <vehre@gcc.gnu.org>2024-07-22 11:31:07 +0200
commit9d8888650e97cb76e4ea3b5d060e4a4cef38fc58 (patch)
tree7b33c2c2a2a54da0e3aec16ee1d9eb8552d25165 /gcc/fold-const.cc
parent0c5c0c959c2e592b84739f19ca771fa69eb8dfee (diff)
downloadgcc-9d8888650e97cb76e4ea3b5d060e4a4cef38fc58.zip
gcc-9d8888650e97cb76e4ea3b5d060e4a4cef38fc58.tar.gz
gcc-9d8888650e97cb76e4ea3b5d060e4a4cef38fc58.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/fold-const.cc')
0 files changed, 0 insertions, 0 deletions