[flang-commits] [flang] [llvm] [Flang] Add semantic check for usage of COPYPRIVATE and NOWAIT clauses (PR #73486)

Kiran Kumar T P via flang-commits flang-commits at lists.llvm.org
Mon Dec 4 03:06:06 PST 2023


================
@@ -2456,6 +2465,19 @@ void OmpStructureChecker::Enter(const parser::OmpClause::Private &x) {
   CheckIntentInPointer(x.v, llvm::omp::Clause::OMPC_private);
 }
 
+void OmpStructureChecker::Enter(const parser::OmpClause::Nowait &x) {
+  CheckAllowed(llvm::omp::Clause::OMPC_nowait);
----------------
kiranktp wrote:

This does look for begin or end directive. But for C/C++ we do not have end directive, so nowait clause is present in begin directive list as well in OMP.td. So this will not flag any error for Fortran when nowait is used in begin directive clause list. Removing the nowait clause from begin directive list in OMP.td will flag error for C/C++ tests.

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


More information about the flang-commits mailing list