Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

The status and future of parameterized derived types in gfortran

95 views
Skip to first unread message

Amir Shahmoradi

unread,
Mar 13, 2022, 1:23:06 AM3/13/22
to
Dear all,

First, I want to thank the volunteer gfortran developers who humbly, silently, and tirelessly help run the world every day without anyone noticing.

I want to inquire regarding the status of Parameterized Derived Types in gfortran. I am asking the question here because I understand that some (if not all) gfortran developers are actively present in this google forum.

Specifically, I am interested in the kind type parameter of PDTs since it is a compile-time constant and essential for any generic programming involving derived types. Currently, it seems like the latest versions of gfortran are still incapable of executing simple PDTs with kind type parameters (with no len type parameter, here is an example: https://godbolt.org/z/xbdMG1W51).

We need to know if the status of PDTs in gfortran will improve any time soon, for example, with the release of gfortran 12. This is critical for project management and development since the codebase should also compile with gfortran. If gfortran PDTs are not going to improve anytime soon (within the next few months), we have a few options:
1. abandon gfortran support and rely exclusively on commercial compilers.
2. abandon generic programming and write duplicate kind-specific derived types where needed.

Both options are too ugly and disappointing to adopt. So, I hope someone in this forum could cheer us up with a better alternative or good news.

In the FortranLang forum, I also mentioned that I'd be interested in (personally) financially helping the development of gfortran's missing features (in particular, the kind type parameter of PDTs). But I do not know if this is possible at all and how.

I appreciate your help.

FortranFan

unread,
Mar 13, 2022, 8:09:54 PM3/13/22
to
On Sunday, March 13, 2022 at 1:23:06 AM UTC-5, a.shah...@gmail.com wrote:

> ..
> I want to inquire regarding the status of Parameterized Derived Types in gfortran. I am asking the question here because I understand that some (if not all) gfortran developers are actively present in this google forum.
> ..

@a.shah...@gmail.com,

See this thread at this forum: https://groups.google.com/g/comp.lang.fortran/c/NDE6JKTFbNU/m/dD8mOww6AQAJ

You may want to reach out to Paul Rich Thomas, that might give you a headstart with your interest.
0 new messages