[Bug fortran/111880] [11/12/13/14] False positive warning of obsolescent COMMON block with Fortran submodule
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 1 18:04:06 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111880
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:246760b37f1239b3b97c20fb4a914f21154389a3
commit r11-11119-g246760b37f1239b3b97c20fb4a914f21154389a3
Author: Harald Anlauf <anlauf@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.c (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)
More information about the Gcc-bugs
mailing list