[flang-commits] [flang] [llvm] [flang-rt] Add PDT LEN parameter support: Concrete type cache (PR #181008)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Tue Feb 24 07:41:46 PST 2026


klausler wrote:

Agreed, the approach with automatic (indirected via descriptor) components seems to have insurmountable problems.  The scheme that seems most promising is to interpret some LEN parameter values as component offsets or bounds or whatever.  There's a means for expressing that for at least some of these items, and an easy way to accommodate the others in a forward-compatible manner.  Then any PDT would be instantiated on its KIND parameter values at compilation time, and each instantiation would have a description object generated by semantics as is done today, and the LEN parameter values would be in (or pointed to) the descriptor addenda.

https://github.com/llvm/llvm-project/pull/181008


More information about the flang-commits mailing list