https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95847
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:547d07637bf09d74543f688454ce53a4c5eecd47 commit r9-9041-g547d07637bf09d74543f688454ce53a4c5eecd47 Author: Tobias Burnus <tob...@codesourcery.com> Date: Thu Nov 12 16:39:58 2020 +0100 Fortran: Fix function decl's location [PR95847] gcc/fortran/ChangeLog: PR fortran/95847 * trans-decl.c (gfc_get_symbol_decl): Do not (re)set the location of an external procedure. (build_entry_thunks, generate_coarray_init, create_main_function, gfc_generate_function_code): Use fndecl's location in BIND_EXPR. gcc/testsuite/ChangeLog: PR fortran/95847 * gfortran.dg/coverage.f90: New test. (cherry picked from commit 2d59593105d3b1e38e49f96b74fd81e4e5038c7f)