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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>:

https://gcc.gnu.org/g:d6418fe22684f9335474d1fd405ade45954c069d

commit r15-7308-gd6418fe22684f9335474d1fd405ade45954c069d
Author: Harald Anlauf <anl...@gmx.de>
Date:   Thu Jan 30 22:21:19 2025 +0100

    Fortran: host association issue with symbol in COMMON block [PR108454]

    When resolving a flavorless symbol that is already registered with a COMMON
    block, and which neither has the intrinsic, generic, or external attribute,
    skip searching among interfaces to avoid false resolution to a derived type
    of the same name.

            PR fortran/108454

    gcc/fortran/ChangeLog:

            * resolve.cc (resolve_common_blocks): Initialize variable.
            (resolve_symbol): If a symbol is already registered with a COMMON
            block, do not search for an interface with the same name.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/common_29.f90: New test.

Reply via email to