https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123375

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jerry DeLisle <[email protected]>:

https://gcc.gnu.org/g:8d1a6a84b158a6d825fb3d2dcbba8e02cce990fe

commit r16-6888-g8d1a6a84b158a6d825fb3d2dcbba8e02cce990fe
Author: Steven G. Kargl <[email protected]>
Date:   Sat Jan 17 18:30:44 2026 -0800

    Fortran: Fix ICE on invalid code

    This patch tests whether a symbol imported into an interface
    is already available in local scope.

            PR fortran/123375

    gcc/fortran/ChangeLog:

            * decl.cc (gfc_match_import): Check that imported entity within
            a interface is not from local scope.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/import.f90: Run code testing for a warning that
            is now an error.
            * gfortran.dg/pr123375.f90: New test.

Reply via email to