]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: avoid obsolescence warning for COMMON with submodule [PR111880]
authorHarald Anlauf <anlauf@gmx.de>
Thu, 23 Nov 2023 21:48:38 +0000 (22:48 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Sun, 26 Nov 2023 19:10:20 +0000 (20:10 +0100)
commitc9d029ba2ceb435e31492c1f3f0fd3edf0e386be
treead58c9235693685fca039d938a84549ef40dc772
parent22f42cdcb091b7046f4d687342ac0913efb95838
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.
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pr111880.f90 [new file with mode: 0644]