https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60661
Thomas Koenig changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60661
--- Comment #3 from Thomas Koenig ---
We have to be a bit careful about statement like
do concurrent(i=1:n, a(i)>sum(a)/n)
a(i) = a(i) * 0.5
end do
which really have to be before the execution
of the loop body itself.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60661
--- Comment #2 from Tobias Burnus ---
Quote from the standard:
http://mailman.j3-fortran.org/pipermail/j3/2014-March/007259.html
The key paragraph is [176:22]:
"At the completion of the execution of the DO statement, the execution cycle
begins."
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60661
--- Comment #1 from Tobias Burnus ---
Note that one needs to be careful to handle OpenACC/OpenMP correctly to make
sure that, e.g., "!$acc loop" remains attached to the loop it belongs to.