[flang-commits] [flang] [flang][openacc] Do not accept static and num for gang clause on routine dir (PR #77673)

via flang-commits flang-commits at lists.llvm.org
Thu Jan 11 12:05:24 PST 2024


================
@@ -560,14 +560,26 @@ void AccStructureChecker::Enter(const parser::AccClause::Gang &g) {
   if (g.v) {
     bool hasNum = false;
     bool hasDim = false;
+    bool hasStatic = false;
     const Fortran::parser::AccGangArgList &x = *g.v;
     for (const Fortran::parser::AccGangArg &gangArg : x.v) {
       if (std::get_if<Fortran::parser::AccGangArg::Num>(&gangArg.u))
         hasNum = true;
       else if (std::get_if<Fortran::parser::AccGangArg::Dim>(&gangArg.u))
         hasDim = true;
+      else if (std::get_if<Fortran::parser::AccGangArg::Static>(&gangArg.u))
----------------
jeanPerier wrote:

Missing braces given this is in semantics.

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


More information about the flang-commits mailing list