[flang-commits] [flang] [flang] Enumeration Type: (PR 1/5) Foundation types + Parser (PR #192651)

via flang-commits flang-commits at lists.llvm.org
Fri May 29 13:51:04 PDT 2026


================
@@ -425,6 +425,22 @@ class UnparseVisitor {
   void Post(const EndEnumStmt &) { // R763
     Outdent(), Word("END ENUM");
   }
+  void Unparse(const EnumerationTypeStmt &x) { // F2023 R767
+    Word("ENUMERATION TYPE");
+    Walk(", ", std::get<std::optional<AccessSpec>>(x.t), " :: ");
+    if (!std::get<std::optional<AccessSpec>>(x.t)) {
----------------
kwyatt-ext wrote:

Removed unnecessary conditional.

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


More information about the flang-commits mailing list