This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/46532] [OMP] missing error for loop bounds missing an attribute
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Nov 2010 12:56:32 +0000
- Subject: [Bug fortran/46532] [OMP] missing error for loop bounds missing an attribute
- Auto-submitted: auto-generated
- References: <bug-46532-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46532
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid, openmp
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.11.18 12:56:26
CC| |burnus at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-11-18 12:56:26 UTC ---
Intel has:
error #6752: Since the OpenMP DEFAULT(NONE) clause applies, the PRIVATE,
SHARED, REDUCTION, FIRSTPRIVATE, or LASTPRIVATE attribute must be explicitly
specified for every variable. [N]
>From the OpenMP 3.0 specification:
"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." ("2.9.3.1 default clause")
Cf. also "2.9.1.1 Data-sharing Attribute Rules for Variables Referenced in a
Construct", which lists the variables which have "predetermined data-sharing
attributes"; in the example, it only affects "i" ("The loop iteration
variable(s) in the associated do-loop(s) of a do or parallel do construct
is(are) private.")