[Fortran, patch] PR125527 - Submodule cannot access internal subprograms of ancestor module via host association

Paul Richard Thomas <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <CAGkQGiJQNfWt68TBsZ3SD9MJH2sXnTXOSRU_hu7dzE1j=w_+1Q@mail.gmail.com>
Hello All,

I pushed a trivial patch to 17-branch to fix a regression, relative to
16-branch, which broke pr118705.

All open submodule meta-bug PRs are now fixed on mainline. I will
backport the whole lot in a few weeks time unless there are any
objections.

compiler line: ~/gfc/bin/gfortran -O2

*******pr88632*******
PR88632 compiles, links and runs successfuly
*******pr90795****** fixed 13-17 branches
PR90795 compiles successfuly
*******pr93422****** fixed 13-17 branches
PR93422 compiles successfuly
*******pr93424******
PR93424 compiles successfuly
*******pr104630*******
PR93424 compiles, links and runs successfuly
*******pr105594****** spurious warning - patch with PR
pr105594 compiles successfuly with no warnings
*******pr115653****** spurious warning - patch with PR105594
pr115653 compiles successfuly with no warnings
*******pr118705******
PR118705 compiles, links and runs successfuly
*******pr121204******
PR121204 compiles, links and runs successfuly
*******pr121379****** should fail because of name clash
pr121379.f90:31:23:

   31 |   real function realg2 (arg1, arg2)  ! { dg-error "requires
the MODULE prefix" }
      |                       1
Error: Procedure ‘realg2’ at (1) requires the MODULE prefix because it
is a module procedure declared in module ‘m’
PR121379 detected name clash
rm: cannot remove '*.o': No such file or directory
*******pr125527******* fixed by Jerry Delisle
pr125527 compiles, links and runs successfuly
rm: cannot remove '*.s': No such file or directory

Regards

Paul


---------- Forwarded message ---------
From: pault at gcc dot gnu.org <[email protected]>
Date: Sun, 7 Jun 2026 at 09:17
Subject: [Bug fortran/125527] Submodule cannot access internal
subprograms of ancestor module via host association
To: <[email protected]>


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

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pault at gcc dot gnu.org
             Blocks|                            |121381


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121381
[Bug 121381] meta-bug submodule
--
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.