| Issue |
52937
|
| Summary |
#pragma unroll can't be followed by another #pragma
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
berolinux
|
Found while trying to build darktable 3.8.0:
$ cat test.cpp
```
int main(int argc, char **argv) {
#pragma unroll
#pragma omp simd
for(int i=0; i<10; i++) {
}
}
```
```
$ clang++ -fopenmp test.cpp
test.cpp:3:2: error: expected a for, while, or do-while loop to follow '#pragma unroll'
#pragma omp simd
^
```
The fix in the code is obvious, but given gcc accepts this as it is, it may be worth making clang more equally accepting for compatibility.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs