Open Pansysk75 opened 1 week ago
Should we add feature tests for these, or just disable them for Clang/GCC? I suppose these were added with the Intel compiler in mind?
They were created for gcc and clang :/ @Johan511 is this code part of your contributions?
I'd rather make the functions non-constexpr in this case and try to fix the other problems.
The PR
The first error seems pretty self explanatory second is because the variable is not initialized is loop body third is because of 2 increments being done in the loop body
Unfortunately, openmp simd reduction is rather strict about how it wants the loop body to be Working Example
HPX does not compile when using -fopenmp (or -fopenmp-simd) on Clang or GCC.
Clang: Can't use pragma in constexpr function
Clang/GCC: Loops in non-canonical form
GCC: invalid increment expression
@hkaiser Should we add feature tests for these, or just disable them for Clang/GCC? I suppose these were added with the Intel compiler in mind?