https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92901
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, openacc Target|powerpc64*-linux-gnu | CC| |tschwinge at gcc dot gnu.org Host|powerpc64*-linux-gnu | Build|powerpc64*-linux-gnu | --- Comment #4 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- For C, we get: [...]/c-c++-common/goacc/clause-locations.c:12:53: warning: conflicting reduction operations for 'sum' 12 | #pragma acc loop reduction(-:diff) reduction(-:sum) | ^ For C++, we get: [...]/c-c++-common/goacc/clause-locations.c:12:56: warning: conflicting reduction operations for 'sum' 12 | #pragma acc loop reduction(-:diff) reduction(-:sum) | ^~~ For Fortran, we get: [...]/gfortran.dg/goacc/clause-locations.f90:11:47: 11 | !$acc loop reduction(-:diff) reduction(-:sum) | ^ Warning: conflicting reduction operations for 'sum' These are all three slightly different. None of them actually points to the "reduction operation". Certainly not a priority to fix or at least unify this, but still noting this here, in case anyone ever feels like improving that.