Issue 152176
Summary Flang OpenMP: reduction with minus operator not supported
Labels flang
Assignees
Reporter mwetzstein
    
Currently, reduction operations with minus are not supported and trigger
<code>
error: The minus reduction operator is deprecated since OpenMP 5.2 and is not supported in the REDUCTION clause.
</code>

Such minus reductions are currently used in various production codes, so sticking to OpenMP 5.2 and not supporting them will break such applications and require source code changes.

I request supporting the minus operator in reductions, so that flang can compile such applications out of the box without source code changes in the applications.

Here is a small reproducer which just does a simple reduction loop over one array: [omp_minus_reproducer.F90.zip](https://github.com/user-attachments/files/21603939/omp_minus_reproducer.F90.zip)

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to