[PATCH] Fortran: fix bogus recursion with DT default initialization [PR118796]
Harald Anlauf
anlauf@gmx.de
Wed Mar 26 21:55:00 GMT 2025
Hi Andre,
Am 26.03.25 um 22:49 schrieb Andre Vehreschild:
> Hi Harald,
>
> looks good to me. Thanks for the patch.
pushed as r15-8945-gb70bd691cfd77b.
Thanks for the swift review!
Harald
> - Andre
> Andre Vehreschild * vehre@gmx.de
> Am 26. März 2025 22:18:41 schrieb Harald Anlauf <anlauf@gmx.de>:
>
>> Dear all,
>>
>> it seems that my patch for default-initialization of function results
>> of derived type could trigger a weird issue if a type-bound function
>> of a type that is use-associated from a different module had the
>> same name, even if the declared function had a different type, but
>> only if the result clause is present.
>>
>> While I had hoped that resolution should not lead to this situation,
>> checking whether the function was use-associated solved the issue.
>>
>> Regtested on x86_64-pc-linux-gnu. OK for mainline?
>>
>> Thanks,
>> Harald
>
>
More information about the Fortran
mailing list