[PATCH] Fortran: fix bogus recursion with DT default initialization [PR118796]

Andre Vehreschild vehre@gmx.de
Wed Mar 26 21:49:20 GMT 2025


Hi Harald,

looks good to me. Thanks for the patch.

- 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20250326/2381719f/attachment-0001.htm>


More information about the Fortran mailing list