This is an archive of the discontinued LLVM Phabricator instance.

[flang] Support PDT KIND parameters in later parameter kind expressions
ClosedPublic

Authored by klausler on Aug 28 2023, 5:19 PM.

Details

Summary

Fortran allows an earlier-declared KIND type parameter of a parameterized
derived type to be used in the constant expression defining the integer
kind of a later type parameter.

TYPE :: T(K,L)
  INTEGER, KIND :: K
  INTEGER(K), LEN :: L
  ...
END TYPE

Diff Detail

Event Timeline

klausler created this revision.Aug 28 2023, 5:19 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 28 2023, 5:19 PM
PeteSteinfeld accepted this revision.Aug 28 2023, 8:41 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Aug 28 2023, 8:41 PM
klausler closed this revision.Aug 29 2023, 1:56 PM