Re: [Patch, fortran] PR93424 - ICE on valid with pointer result from submodule function

Paul Richard Thomas <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <CAGkQGiJBEwtBvn1ufQaqCD4D_LU0n6khJyEbztYZZu3FRXUV8Q@mail.gmail.com>
Hello All,

This patch is sufficiently simple and was holding up other submodule
patches and so I pushed it as r17-1342.

However, I will hold off before backporting.

Cheers

Paul

On Wed, 3 Jun 2026 at 13:58, Paul Richard Thomas
<[email protected]> wrote:
>
> Hello All,
>
> I am working my way through the submodule meta-bug pr121381.
>
> This one I have stared at for rather longer than I like to think
> about. claude AI cogitated about it for 2 hours without coming up with
> a fix. It is quite likely that I didn't steer it well enough. However,
> on following the trail that it was testing, I came up with the fix in
> 30 minutes.
>
> The attached patch survives regtesting on FC44/x86_64.
>
> OK for mainline and later backporting to 16-branch?
>
> Cheers
>
> Paul
>
> PS An Octave script for testing the PRs in the meta-bug gives;
> *******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******
> rm: cannot remove './pr118705_exec': No such file or directory
> /usr/bin/ld.bfd: heading_s.o: in function `__heading_mod_MOD_heading':
> heading_s.f90:(.text+0x23): undefined reference to
> `__vtab_classification_mod_Classification_t.0'
> collect2: error: ld returned 1 exit status
> sh: line 1: ./pr118705_exec: No such file or directory
> *******pr121204******
> STOP 1
> *******pr121379****** should fail because of name clash
> PR121379 fails to detect name clash
> *******pr125527******* fixed by Jerry Delisle
> pr125527 compiles, links and runs successfuly
>
> So pr118705, pr121204 and pr121379 have to be fixed to empty out the meta-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.