[flang-commits] [flang] [llvm] [flang] Enumeration Type: (PR 3/5) Intrinsics + I/O + Modules (PR #193235)
via flang-commits
flang-commits at lists.llvm.org
Thu Aug 6 22:46:34 PDT 2026
================
@@ -1007,6 +1007,11 @@ std::string DeclTypeSpec::AsFortran() const {
return "RECORD" + derivedTypeSpec().typeSymbol().name().ToString();
} else if (derivedTypeSpec().IsVectorType()) {
return derivedTypeSpec().VectorTypeAsFortran();
+ } else if (derivedTypeSpec()
+ .typeSymbol()
+ .get<DerivedTypeDetails>()
+ .isEnumerationType()) {
+ return "TYPE(" + derivedTypeSpec().typeSymbol().name().ToString() + ')';
----------------
MattPD wrote:
Confirmed: The renamed type survives the module-file round trip.
https://github.com/llvm/llvm-project/pull/193235
More information about the flang-commits
mailing list