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