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 b88ca31 commit eee003dCopy full SHA for eee003d
flang/lib/Semantics/check-omp-structure.cpp
@@ -3013,6 +3013,15 @@ void OmpStructureChecker::Enter(const parser::OmpClause::Linear &x) {
3013
}
3014
3015
3016
+ // OpenMP 5.2: Ordered clause restriction
3017
+ if (const auto *clause{
3018
+ FindClause(GetContext(), llvm::omp::Clause::OMPC_ordered)}) {
3019
+ const auto &orderedClause{std::get<parser::OmpClause::Ordered>(clause->u)};
3020
+ if (orderedClause.v) {
3021
+ return;
3022
+ }
3023
3024
+
3025
auto checkForValidLinearClause = [&](const parser::Name &name, bool is_ref) {
3026
parser::CharBlock source{GetContext().clauseSource};
3027
std::string listItemName{name.ToString()};
0 commit comments