]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix coarray in associate not linking [PR85510]
authorAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 22 Jul 2024 13:31:37 +0000 (15:31 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 12 Aug 2024 08:44:35 +0000 (10:44 +0200)
commit8d8db21eb726b785782f4a41ad85a0d4be63068a
treecb804faa49bfeffa9cf0e436d825a66ae3c259a6
parent4bcb480d103b36c389daaf711f0f25d74379adb6
Fortran: Fix coarray in associate not linking [PR85510]

PR fortran/85510

gcc/fortran/ChangeLog:

* resolve.cc (resolve_variable): Mark the variable as host
associated only, when it is not in an associate block.
* trans-decl.cc (generate_coarray_init): Remove incorrect unused
flag on parameter.

gcc/testsuite/ChangeLog:

* gfortran.dg/coarray/pr85510.f90: New test.
gcc/fortran/resolve.cc
gcc/fortran/trans-decl.cc
gcc/testsuite/gfortran.dg/coarray/pr85510.f90 [new file with mode: 0644]