https://bugs.llvm.org/show_bug.cgi?id=45233
Bug ID: 45233
Summary: Non-canonical loop nest not diagnosed
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: OpenMP
Assignee: unassignedclangb...@nondot.org
Reporter: l...@meinersbur.de
CC: llvm-bugs@lists.llvm.org
Consider the following program:
int main() {
#pragma omp for collapse(2)
for (int i = 0; i < 128; i += 1)
for (int j = 0; j < 128; j += i)
;
return 0;
}
According to the OpenMP specification, the incr must be:
> An integer expression that is loop invariant with respect to the outermost
associated loop
However, clang consumes this loop without error diagnostic.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs