[PATCH] Fortran: fix checking of MOLD= in ALLOCATE statements [PR51961]
Jerry D
jvdelisle2@gmail.com
Sun Jun 15 22:13:50 GMT 2025
On 6/15/25 1:22 PM, Harald Anlauf wrote:
> Am 15.06.25 um 21:25 schrieb Harald Anlauf:
>> Dear all,
>>
>> the attached patch fixes a rejects-valid: in an ALLOCATE statement with
>> MOLD= present, if the allocate-object has an explicit-shape-spec, the
>> compatibility of ranks is not required by the standard. (It is
>> explicitly required only for SOURCE=).
>
> Oops, I attached the wrong patch. Fixed now...
>
>> Since this could surprise users, we emit a warning if -Wsurprising is
>> specified (contained in -Wall). This agrees with NAG's behavior.
>>
>> Testcase cross-checked with ifx and NAG.
>>
>> Regtested on x86_64-pc-linux-gnu. OK for mainline / 15-branch?
>>
>> Thanks,
>> Harald
Yes, looks OK Harald. Thanks.
Jerry
More information about the Fortran
mailing list