This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/71014] associate statement inside omp parallel do appears to disable default private attribute for inner loop indices
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 09 May 2016 18:15:46 +0000
- Subject: [Bug fortran/71014] associate statement inside omp parallel do appears to disable default private attribute for inner loop indices
- Auto-submitted: auto-generated
- References: <bug-71014-4 at http dot gcc dot gnu dot org/bugzilla/>
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.