Hi Jerry,

Thanks for the review. I pushed the patch as r16-3616 with the comment
rendered as the more comprehensible:  /* The F08 standard requires(See
R425, R431, R435, and in particular Note 6.7) that a PDT parameter
reference be a scalar even if the designator is an array."  */

Regards

Paul


On Sat, 6 Sept 2025 at 17:20, Jerry D <jvdelis...@gmail.com> wrote:

> On 9/6/25 5:25 AM, Paul Richard Thomas wrote:
> > Hi All,
> >
> > This patch corrects the current behaviour of gfortran to return arrays
> > for type parameter references, when the designator is an array. It
> > reuses existing code, as described in the ChangeLog. The necessary
> > modification to pdt_20.f03 is a sufficient test.
> >
> > Regtests on FC42/x86_64. OK for mainline?
> >
> > Paul
> >
>
> Hi Paul,
>
> I had to study this a bit. I think it is OK for mainline. I did retest
> and also tested the original case given in the PR. The following comment
> I get hung up on the syntax of the last sentence.
>
>   /* The F08 standard distinguishes between type parameter definition
>      statements and component definition statements. See R425, R431,
>      R435, and in particular see Note 6.7 which says "It [array%a, for
>      example] is scalar even if designator is an array."  */
>
> The right ']' seems out of place and 'the' in between 'if' and
> 'designator'. ??
>
> Cheers,
>
> Jerry
>

Reply via email to