[flang-commits] [flang] [flang]Accept directive inside type definition (PR #87804)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Mon Apr 8 07:52:07 PDT 2024


================
@@ -437,7 +437,9 @@ TYPE_PARSER(construct<TypeParamDecl>(name, maybe("=" >> scalarIntConstantExpr)))
 TYPE_PARSER(recovery(
     withMessage("expected component definition"_err_en_US,
         first(construct<ComponentDefStmt>(Parser<DataComponentDefStmt>{}),
-            construct<ComponentDefStmt>(Parser<ProcComponentDefStmt>{}))),
+            construct<ComponentDefStmt>(Parser<ProcComponentDefStmt>{}),
+            construct<ComponentDefStmt>(
+                indirect(Parser<CompilerDirective>{})))),
----------------
klausler wrote:

`indirect(compilerDirective)`

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


More information about the flang-commits mailing list