[Bug fortran/88624] [Coarray] Rejects allocatable coarray passed as a dummy argument
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88624 Andre Vehreschild changed: What|Removed |Added Resolution|--- |FIXED Status|WAITING |RESOLVED
[Bug fortran/88624] [Coarray] Rejects allocatable coarray passed as a dummy argument
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88624 --- Comment #5 from GCC Commits --- The master branch has been updated by Andre Vehreschild : https://gcc.gnu.org/g:9d650e97cb76e4ea3b5d060e4a4cef38fc58 commit r15-2193-g9d650e97cb76e4ea3b5d060e4a4cef38fc58 Author: Andre Vehreschild Date: Thu Jul 11 10:07:12 2024 +0200 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.
[Bug fortran/88624] [Coarray] Rejects allocatable coarray passed as a dummy argument
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88624 Andre Vehreschild changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |vehre at gcc dot gnu.org CC||vehre at gcc dot gnu.org Status|NEW |WAITING --- Comment #4 from Andre Vehreschild --- Patch proposed at https://gcc.gnu.org/pipermail/fortran/2024-July/060661.html Waiting for review.
[Bug fortran/88624] [Coarray] Rejects allocatable coarray passed as a dummy argument
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88624 Thomas Koenig changed: What|Removed |Added Keywords|rejects-valid |ice-on-valid-code CC||tkoenig at gcc dot gnu.org --- Comment #3 from Thomas Koenig --- At least something that works on the shared coarray branch :-)
[Bug fortran/88624] [Coarray] Rejects allocatable coarray passed as a dummy argument
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88624 G. Steinmetz changed: What|Removed |Added CC||gs...@t-online.de --- Comment #2 from G. Steinmetz --- Update : $ cat z1.f90 subroutine g(x) real, allocatable :: x(:)[:] call h(x) contains subroutine h(z) real :: z(:)[*] end end $ gfortran-10-20191208 -c z1.f90 -fcoarray=lib z1.f90:3:0: 3 |call h(x) | internal compiler error: in gfc_conv_procedure_call, at fortran/trans-expr.c:6579 0x710ece gfc_conv_procedure_call(gfc_se*, gfc_symbol*, gfc_actual_arglist*, gfc_expr*, vec*) ../../gcc/fortran/trans-expr.c:6578 0x745888 gfc_trans_call(gfc_code*, bool, tree_node*, tree_node*, bool) ../../gcc/fortran/trans-stmt.c:406 0x6d6981 trans_code ../../gcc/fortran/trans.c:1932 0x6ffb24 gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6801 0x688be6 translate_all_program_units ../../gcc/fortran/parse.c:6302 0x688be6 gfc_parse_file() ../../gcc/fortran/parse.c:6541 0x6d306f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:210
[Bug fortran/88624] [Coarray] Rejects allocatable coarray passed as a dummy argument
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88624 Dominique d'Humieres changed: What|Removed |Added Priority|P3 |P4 Status|UNCONFIRMED |NEW Last reconfirmed||2018-12-28 Ever confirmed|0 |1 --- Comment #1 from Dominique d'Humieres --- Confirmed from at least 4.8.