]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Ensure arguments in coarray call get unique components in add_data [PR120847]
authorAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 27 Jun 2025 13:31:21 +0000 (15:31 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 1 Jul 2025 11:02:13 +0000 (13:02 +0200)
commitee31ab9b1950b7f47f030bda231ace34d187ae26
tree6b5babd37aadc245c196ad5b67603dadb771fe17
parentd0561362e90a97a89358d8ca792208555cb3f87d
Fortran: Ensure arguments in coarray call get unique components in add_data [PR120847]

PR fortran/120847

gcc/fortran/ChangeLog:

* coarray.cc (check_add_new_comp_handle_array): Make the count
of components static to be able to create more than one.  Create
an array component only for array expressions.

gcc/testsuite/ChangeLog:

* gfortran.dg/coarray/coindexed_7.f90: New test.
gcc/fortran/coarray.cc
gcc/testsuite/gfortran.dg/coarray/coindexed_7.f90 [new file with mode: 0644]