https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71014
Harald Anlauf <anlauf at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gmx dot de
--- Comment #5 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Keith Lindsay from comment #4)
> Thanks for taking a look. I've attached the output from the command
> gfortran -v -fopenmp openmp_nested_loops.f90 -o openmp_nested_loops
> on two different systems where I'm seeing the problem.
Do you still see the problem when you replace the line
!$OMP PARALLEL DO
by
!$OMP PARALLEL DO private(i,j) shared(s) default(none)
?
What you see might be a race condition, since you did not declare the
inner loop variable i as private.