#pragma omp for
{
for(...)
}
This is technically not allowed by the standard, gcc doesnt allow such code.
Paths
| Differential D24615
[OpenMP] clang doesnt diagnose if there is a lexical block around a for stmt for OpenMP loops. It is technically not allowed in the OpenMP standard AbandonedPublic Authored by • davidsh on Sep 15 2016, 10:15 AM.
Details Summary #pragma omp for This is technically not allowed by the standard, gcc doesnt allow such code.
Diff Detail Event Timeline
Comment Actions
Agree
Revision Contents
Diff 73520 include/clang/AST/Stmt.h
lib/AST/Stmt.cpp
lib/Sema/SemaOpenMP.cpp
test/OpenMP/for_loop_messages.cpp
|
You also should skip all AttributedStmts.