Re: [PATCH] Fortran: fix rank/shape check in interface checking [PR124567]

Paul Richard Thomas <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <CAGkQGi+sHykDc69_Wx=gT_i72G_xydF8EmKLvKmYTDnmrphiXw@mail.gmail.com>
Hi Harald,

This looks good to me but for one niggle: Does the error in the first
chunk get tested somewhere else in the testsuite? Perhaps I have not
done enough investigation of the patch when applied?

Thanks for the patch.

Cheers

Paul

On Tue, 24 Mar 2026 at 21:16, Harald Anlauf <[email protected]> wrote:
>
> Dear all,
>
> the attached patch fixes the issue reported by Salvatore Filippone.
>
> As Tobias already explained, we have the situation that resolution
> does not always resolve the ambiguity between deferred shape and
> assumed shape.  The attached patch solves this by splitting the
> shape check into one for rank (to catch true deferred shape cases)
> and shape, the latter making an exception for the described situation.
>
> Regtested on x86_64-pc-linux-gnu.  OK for mainline?
>
> Thanks,
> Harald
>
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.