https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111880
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:ff96ddf43bcfe5c37a85118a68dcac87ce33c8d9 commit r13-8111-gff96ddf43bcfe5c37a85118a68dcac87ce33c8d9 Author: Harald Anlauf <anl...@gmx.de> Date: Thu Nov 23 22:48:38 2023 +0100 Fortran: avoid obsolescence warning for COMMON with submodule [PR111880] gcc/fortran/ChangeLog: PR fortran/111880 * resolve.cc (resolve_common_vars): Do not call gfc_add_in_common for symbols that are USE associated or used in a submodule. gcc/testsuite/ChangeLog: PR fortran/111880 * gfortran.dg/pr111880.f90: New test. (cherry picked from commit c9d029ba2ceb435e31492c1f3f0fd3edf0e386be)