https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108454
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:ca652aebd30132b2a9afbc07c664a35b5e443350 commit r14-11276-gca652aebd30132b2a9afbc07c664a35b5e443350 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. (cherry picked from commit d6418fe22684f9335474d1fd405ade45954c069d)