[flang-commits] [flang] [flang][OpenACC] Add minus operator to reduction clause (PR #200909)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Tue Jun 2 11:52:57 PDT 2026


================
@@ -41,6 +41,8 @@ These extensions require no flag.
 * The OpenACC specification disallows a variable from appearing multiple times
   in clauses of `!$acc declare` directives for a function, subroutine, program,
   or module, but Flang permits it with a warning when the same clause is used.
+* The REDUCTION clause accepts a MINUS "-" operator which is not permitted in
+  the OpenACC specification. A warning is issued for this use. 
----------------
eugeneepshteyn wrote:

There's a trailing white space after `for this use.`  Just in case, please remove it to avoid any complaints from the documentation tools. (It could just be me being overly paranoid.)

https://github.com/llvm/llvm-project/pull/200909


More information about the flang-commits mailing list