https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123375
--- Comment #5 from Steve Kargl <kargl at gcc dot gnu.org> --- Created attachment 63213 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63213&action=edit Patch This patch test whether a symbol imported into an interface is already available in local scope. The ChangeLog entry is 2026-01-03 Steven G. Kargl <[email protected]> PR fortran/123357 * decl.cc (gfc_match_import): Check that imported entity within a interface is not from local scope. 2026-01-03 Steven G. Kargl <[email protected]> PR fortran/123357 * gfortran.dg/import.f90: Run code testing for a warning that is now an error. gfortran.dg/pr123375.f90: New testcase.
