https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99817
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:e976dc67ac5b0f6e9ea5e7e0e4f99c40e5abcd28 commit r10-9697-ge976dc67ac5b0f6e9ea5e7e0e4f99c40e5abcd28 Author: Tobias Burnus <tob...@codesourcery.com> Date: Fri Apr 9 10:18:24 2021 +0200 Fortran: Fix fndecl with -fcoarray=lib [PR99817] gcc/fortran/ChangeLog: PR fortran/99817 * trans-types.c (gfc_get_function_type): Also generate hidden coarray argument for character arguments. gcc/testsuite/ChangeLog: PR fortran/99817 * gfortran.dg/coarray/dummy_2.f90: New test. (cherry picked from commit d31f485dedc86773152d0384bc6ba5583b259a42)