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
Paths
| Differential D159044
[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 TYPE :: T(K,L) INTEGER, KIND :: K INTEGER(K), LEN :: L ... END TYPE
Diff Detail Event TimelineThis revision is now accepted and ready to land.Aug 28 2023, 8:41 PM
Revision Contents
Diff 554114 flang/lib/Semantics/expression.cpp
flang/lib/Semantics/runtime-type-info.cpp
flang/lib/Semantics/type.cpp
flang/test/Semantics/label18.f90#
flang/test/Semantics/pdt02.f90
flang/test/Semantics/resolve105.f90
flang/test/Semantics/resolve69.f90
flang/test/Semantics/selecttype01.f90
flang/test/Semantics/typeinfo01.f90
|