[flang-commits] [flang] [flang][OpenMP] More detailed checks for argument list items in clauses (PR #201334)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Wed Jun 10 08:06:45 PDT 2026


================
@@ -4451,7 +4502,6 @@ void OmpStructureChecker::Enter(const parser::OmpClause::Detach &x) {
     CheckAllowedClause(llvm::omp::Clause::OMPC_detach);
   }
 
-  CheckTypeParamInquiry(GetContext().clauseSource, x.v.v);
----------------
kparzysz wrote:

Detach takes a single argument. The `GetArgumentListItemKind` function applies to clauses taking lists of objects.

If you referring to removing the check for type-param inquiry, then yes, that seems like a mistake.

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


More information about the flang-commits mailing list