PATCH] Fortran: fix stack overflow passing assumed-rank type to, assumed-rank class [PR60576]
Jerry D
jvdelisle2@gmail.com
Thu Jun 4 19:58:26 GMT 2026
The master branch has been updated by Jerry DeLisle <jvdelisle@gcc.gnu.org>:
https://gcc.gnu.org/g:eaf4292c83804bd21b920db174401ca3702601d4
commit r17-1352-geaf4292c83804bd21b920db174401ca3702601d4
Author: Jerry DeLisle <jvdelisle@gcc.gnu.org>
Date: Thu Jun 4 12:11:37 2026 -0700
Fixed on trunk. I will let it settle a bit before trying to backport.
Thanks to Harald and Paul for reviews.
Jerry
On 6/4/26 12:52 PM, Jerry D wrote:
> On 6/3/26 11:54 PM, Paul Richard Thomas wrote:
>> Hello Jerry,
>>
>> Contrary to my remark on Mattermost, this looks good to me except that
>> I would halve the size of the patch by refactoring it as in the
>> attached version. It passes regression testing like the original.
>>
>> OK for mainline and backporting later on.
>>
>> Thanks for re-examining this Golden Oldie!
>>
>> Paul
>
> Paul, the diff you attached threw claude into a tizzy. I slapped it and set it
> back on track. The attached fixes the breakage in the original
> assumed_rank_7.f90 with -fsanitize=address, passes the new asan/
> assumed_rank_26.f90 and fixed a breakage in coarray/dummy_3.f90.
>
> I have completely regression tested this one and manually tested the original
> assume_rank_7.f90 with -fsanitize=address. All pass.
>
> I plan to commit this shortly.
>
> Regards,
>
> Jerry
More information about the Fortran
mailing list