[flang-commits] [flang] [llvm] [Flang][OpenMP] Add semantic checks for Worshare construct (PR #111358)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Mon Oct 7 04:29:13 PDT 2024


================
@@ -68,11 +68,20 @@ class OmpWorkshareBlockChecker {
     if (const auto *e{GetExpr(context_, expr)}) {
       for (const Symbol &symbol : evaluate::CollectSymbols(*e)) {
         const Symbol &root{GetAssociationRoot(symbol)};
-        if (IsFunction(root) && !IsElementalProcedure(root)) {
-          context_.Say(expr.source,
-              "User defined non-ELEMENTAL function "
-              "'%s' is not allowed in a WORKSHARE construct"_err_en_US,
-              root.name());
+        if (IsFunction(root)) {
+          std::string attrs = "";
----------------
kiranchandramohan wrote:

Use braced initialization in frontend code.

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


More information about the flang-commits mailing list