# Do concurrent "reduce" in GCC

**URL:** <https://fortran-lang.discourse.group/t/do-concurrent-reduce-in-gcc/8723>\
**Category:** GNU\
**Created:** [October 15, 2024, 7:11pm UTC](https://fortran-lang.discourse.group/t/do-concurrent-reduce-in-gcc/8723 "2024-10-15T19:11:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumseq](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/sumseq/32/3083_2.png) [@sumseq](https://fortran-lang.discourse.group/u/sumseq)\
**Post date:** [October 15, 2024, 7:11pm UTC](https://fortran-lang.discourse.group/t/do-concurrent-reduce-in-gcc/8723/1 "2024-10-15T19:11:16Z")

</div>

Does anyone know if anyone is working on a GCC implementation of the Fortran 2023 `do concurrent` `reduce()` clause?

I am not even referring to implementing it in parallel - just to have the compiler recognize it and not throw an error when compiling (even if it just treats the loop as a serial `do` loop like it does currently for `do concurrent` anyways).

Intel’s `ifx`, NVIDIA’s `nvfortran`, and HPE’s `cce` compilers all recognize the new `reduce()` clause. I believe `lfortran` and `flang` do as well?

However, if I want to write code that also works with GCC, I cannot use `reduce()` even with GCC 14.

Does anyone know if GCC 15 will recognize the clause?

– Ron

---

<div class="post-metadata">

**Author:** ![ivanpribec](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ivanpribec/32/3290_2.png) [@ivanpribec](https://fortran-lang.discourse.group/u/ivanpribec)\
**Post date:** [October 15, 2024, 7:40pm UTC](https://fortran-lang.discourse.group/t/do-concurrent-reduce-in-gcc/8723/2 "2024-10-15T19:40:22Z")

</div>

[https://gcc.gnu.org/pipermail/fortran/2024-September/061043.html](https://gcc.gnu.org/pipermail/fortran/2024-September/061043.html)
