------- Comment #3 from jakub at gcc dot gnu dot org 2008-08-11 13:09 -------
If you mean the default(none) examples (in OpenMP 3.0 that's A.28), then no,
those testcases don't explicitly say it is ok to have the firstprivate clause
with a var not explicitly mentioned in the parallel's clause, it has neither OK
nor Error there, but as it already said an Error for using y I guess it doesn't
add an comment for it.
s is referenced in the parallel construct, see 2.9.1.1:
"Specifying a variable on a firstprivate, lastprivate, or reduction clause of
an enclosed construct causes an implicit reference to the variable in the
enclosing construct. Such implicit references are also subject to the following
rules."
and 2.9.3.1:
"The default(none) clause requires that each variable that is referenced in the
construct, and that does not have a predetermined data-sharing attribute, must
have its data-sharing attribute explicitly determined by being listed in a
data-sharing attribute clause."
Whether the reference is explicit or implicit is irrelevant for 2.9.3.1.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36556