https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95847
--- Comment #10 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:17563c1153d36440936ea0948ac689f84b2cf666 commit r10-9017-g17563c1153d36440936ea0948ac689f84b2cf666 Author: Tobias Burnus <tob...@codesourcery.com> Date: Tue Nov 10 10:31:33 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)