This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/63938] OpenMP atomic update does not protect access to automatic array
- From: "Joost.VandeVondele at mat dot ethz.ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Nov 2014 07:10:07 +0000
- Subject: [Bug fortran/63938] OpenMP atomic update does not protect access to automatic array
- Auto-submitted: auto-generated
- References: <bug-63938-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63938
Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-11-24
CC| |Joost.VandeVondele at mat dot ethz
| |.ch
Ever confirmed|0 |1
Known to fail| |4.7.2, 4.8.3, 4.9.2, 5.0
--- Comment #1 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> ---
confirmed to affect all open branches, and at all optimization levels.
It is triggered by the fact that the array index is a constant, i.e.
this fails:
!$omp atomic
x(1) = x(1) + 1
this works:
!$omp atomic
x(j) = x(j) + 1