We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a4ad72 commit 106d2bfCopy full SHA for 106d2bf
flang/lib/Semantics/check-omp-structure.cpp
@@ -3077,6 +3077,15 @@ void OmpStructureChecker::Enter(const parser::OmpClause::Linear &x) {
3077
}
3078
3079
3080
+ // OpenMP 5.2: Ordered clause restriction
3081
+ if (const auto *clause{
3082
+ FindClause(GetContext(), llvm::omp::Clause::OMPC_ordered)}) {
3083
+ const auto &orderedClause{std::get<parser::OmpClause::Ordered>(clause->u)};
3084
+ if (orderedClause.v) {
3085
+ return;
3086
+ }
3087
3088
+
3089
auto checkForValidLinearClause = [&](const parser::Name &name, bool is_ref) {
3090
parser::CharBlock source{GetContext().clauseSource};
3091
std::string listItemName{name.ToString()};
0 commit comments