https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85510
--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andre Vehreschild <ve...@gcc.gnu.org>: https://gcc.gnu.org/g:8d8db21eb726b785782f4a41ad85a0d4be63068a commit r15-2882-g8d8db21eb726b785782f4a41ad85a0d4be63068a Author: Andre Vehreschild <ve...@gcc.gnu.org> Date: Mon Jul 22 15:31:37 2024 +0200 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.