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 8d4e229 commit 96fad74Copy full SHA for 96fad74
flang/lib/Semantics/check-omp-structure.cpp
@@ -3570,6 +3570,15 @@ void OmpStructureChecker::Enter(const parser::OmpClause::Linear &x) {
3570
}
3571
3572
3573
+ // OpenMP 5.2: Ordered clause restriction
3574
+ if (const auto *clause{
3575
+ FindClause(GetContext(), llvm::omp::Clause::OMPC_ordered)}) {
3576
+ const auto &orderedClause{std::get<parser::OmpClause::Ordered>(clause->u)};
3577
+ if (orderedClause.v) {
3578
+ return;
3579
+ }
3580
3581
+
3582
auto checkForValidLinearClause_01 = [&](const parser::Name &name,
3583
bool is_ref) {
3584
std::string listItemName{name.ToString()};
0 commit comments