Skip to content

Commit eed0acb

Browse files
committed
Revert "Allow do concurrent in loop constructs, but not loop nests"
This reverts commit ab3fba8.
1 parent ab3fba8 commit eed0acb

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

flang/lib/Semantics/resolve-directives.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,8 +1952,7 @@ void OmpAttributeVisitor::PrivatizeAssociatedLoopIndexAndCheckLoopLevel(
19521952
const auto &outer{std::get<std::optional<parser::DoConstruct>>(x.t)};
19531953
if (outer.has_value()) {
19541954
for (const parser::DoConstruct *loop{&*outer}; loop && level > 0; --level) {
1955-
// DO CONCURRENT is allowed for loop constructs but not loop nests
1956-
if (loop->IsDoConcurrent() && GetContext().associatedLoopLevel != 1) {
1955+
if (loop->IsDoConcurrent()) {
19571956
auto &stmt =
19581957
std::get<parser::Statement<parser::NonLabelDoStmt>>(loop->t);
19591958
context_.Say(stmt.source,

flang/test/Lower/OpenMP/Todo/omp-doconcurrent.f90

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)