This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/41737] [omp] missing error for undeclared variable in a parallel region with default(none)
- 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: Fri, 29 Jun 2012 14:34:00 +0000
- Subject: [Bug libgomp/41737] [omp] missing error for undeclared variable in a parallel region with default(none)
- Auto-submitted: auto-generated
- References: <bug-41737-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41737
Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2012-06-29
--- Comment #3 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 2012-06-29 14:34:00 UTC ---
simplified testcase, for 4.8:
INTEGER :: ip,np
!$omp parallel do default(none)
DO ip=0,np
ENDDO
!$omp end parallel do
END
while it is OK for ip to have no explicit attribute, I believe the standard
requires one for np. Intel ifort gives:
est.f90(3): error #6752: Since the OpenMP* DEFAULT(NONE) clause applies, the
PRIVATE, SHARED, REDUCTION, FIRSTPRIVATE, or LASTPRIVATE attribute must be
explicitly specified for every variable. [NP]