This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgomp/41737] [omp] missing error for undeclared variable in a parallel region with default(none)


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]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]