https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109512
--- Comment #4 from Steve Kargl <kargl at gcc dot gnu.org> --- The attached patch has been regression tested on x86_64-*-freebsd. The only gotta is that finding a locus for reporting the error. The routine resolve_call uses c->loc in a number of places. That actually points to the end of the line. If the routine as an actual argument, I use its locus instead of c->loc. 2026-01-01 Steven G. Kargl <[email protected]> PR fortran/109512 * resolve.cc (resolve_call): Check if an external attribute is required on a call to an external function. 2026-01-01 Steven G. Kargl <[email protected]> PR fortran/109512 * gfortran.dg/pr109512.f90: New test.
