[Bug fortran/81304] [5/6/7/8 Regression] Bogus warning with -Wsurprising and -fopenmp: Type specified for intrinsic function 'min' / 'max'

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 6 20:21:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81304

--- Comment #3 from janus at gcc dot gnu.org ---
Note that the bogus warning goes away when using scalar reduction variables:


program bogus_warning
   integer :: i
   real :: Dx_min, Dx_max
!$omp parallel do default(shared) private(i) reduction(min: Dx_min)
reduction(max: Dx_max)
   do i = 1,16
   end do
!$omp end parallel do
end


More information about the Gcc-bugs mailing list