# A gfortran issue with parameterized derived types

**URL:** <https://fortran-lang.discourse.group/t/a-gfortran-issue-with-parameterized-derived-types/213>\
**Category:** Help\
**Created:** [July 17, 2020, 12:05am UTC](https://fortran-lang.discourse.group/t/a-gfortran-issue-with-parameterized-derived-types/213 "2020-07-17T00:05:37Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![stavros](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@stavros](https://fortran-lang.discourse.group/u/stavros)\
**Post date:** [July 17, 2020, 7:18pm UTC](https://fortran-lang.discourse.group/t/a-gfortran-issue-with-parameterized-derived-types/213/6 "2020-07-17T19:18:22Z")

</div>

I just want to clarify that this assertion was based on my personal opinion and (limited) experience.

1. Where I come from, in our codes, there is not a single hardcoded/compile-time known parameter with the only exception that of a couple of physical constants (Boltzmann and Avogadro number) and pi.
2. No objection about SoAs. I agree. But I do not see how the concept of SoAs is only or better served by PDTs and not just simple DTs.

> [@FortranFan](#):
>
> For certain problems, PDTs with length-type parameters can offer a design solution that combines the two yielding the typical convenience with performance benefits.

Can you give an example, or explain how this can work? This is a genuine question, I really do not know how PDTs can be a middle solution.

1. Same as 2.
2. This is indeed a case and most probably one of many others that I am not familiar with and I will take your word for it.

---

_[View the full topic](https://fortran-lang.discourse.group/t/a-gfortran-issue-with-parameterized-derived-types/213)._
