[flang-commits] [flang] [Flang] Add parsing and attribute registration for SIMPLE specifier (PR #161285)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Mon Oct 27 12:00:41 PDT 2025


================
@@ -265,6 +265,7 @@ class AttrsVisitor : public virtual BaseVisitor {
   HANDLE_ATTR_CLASS(PrefixSpec::Non_Recursive, NON_RECURSIVE)
   HANDLE_ATTR_CLASS(PrefixSpec::Pure, PURE)
   HANDLE_ATTR_CLASS(PrefixSpec::Recursive, RECURSIVE)
+  HANDLE_ATTR_CLASS(PrefixSpec::Simple, SIMPLE)
----------------
klausler wrote:

Because all SIMPLE procedures are also PURE, an explicit SIMPLE attribute should also set the PURE attribute.  There is a mechanism whereby one can mark a symbol with an attribute and note that it is implicit.

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


More information about the flang-commits mailing list