[PATCH] Fortran: associate to a contiguous pointer or target [PR122977]

Harald Anlauf anlauf@gmx.de
Fri Dec 5 19:28:11 GMT 2025


Hi Paul, Steve,

Am 05.12.25 um 08:36 schrieb Paul Richard Thomas:
> Hi Harald,
> 
> I see that Steve has OK'd it on the PR. It looks good to me too.

thanks to both of you for the review!

Pushed as r16-5923-gee9ded19244ab8 so far.

Harald

> Regards
> 
> Paul
> 
> 
> On Thu, 4 Dec 2025 at 21:26, Harald Anlauf <anlauf@gmx.de> wrote:
> 
>> Dear All,
>>
>> the attached patch fixes a regression when trying to associate
>> to a pointer target with the contiguous attribute.
>>
>> While trying the obvious fix, I saw that gfc_is_simply_contiguous
>> is not working properly when applied to an associate variable,
>> and even more so for nested associate constructs.  So we now
>> also recursively look at the associate target to get this right.
>> See testcase for simple use cases.
>>
>> Regtested on x86_64-pc-linux-gnu.  OK for mainline / 15-branch?
>>
>> Thanks,
>> Harald
>>
>>
> 



More information about the Fortran mailing list