• The status and future of parameterized derived types in gfortran

    From Amir Shahmoradi@21:1/5 to All on Sat Mar 12 22:23:03 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From FortranFan@21:1/5 to a.shah...@gmail.com on Sun Mar 13 17:09:51 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)