OpenMP error when compiling with clang
Reported from https://bugs.gentoo.org/732032. Compilation fail when openmp is enabled when compiling with clang 10. The error is as follow
Error:
pm1fs2.c:1570:17: error: condition of OpenMP for loop must be a relational
comparison ('<', '<=', '>', or '>=') of loop variable 'i'
for (i = 0; (unsigned long) i <= 2 * deg - 2; i++)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Removing the (unsigned long)
fix the issue but the error message seems to imply that clang think the whole expression is to be casted to unsigned long
.