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/44536] New: OMP: missing error with default(none)


the following should give an error message like:

fortcom: Error: test.f90, line 5: Since the OpenMP DEFAULT(NONE) clause
applies, the PRIVATE, SHARED, REDUCTION, FIRSTPRIVATE, or LASTPRIVATE attribute
must be explicitly specified for every variable.   [A]
  J=A(I)
----^
compilation aborted for test.f90 (code 1)


> gfortran -c -fopenmp test.f90
> cat test.f90

SUBROUTINE S1(a,i,j)
  INTEGER, DIMENSION(:), INTENT(IN) :: a
  INTEGER :: i,j
!$OMP PARALLEL DEFAULT(NONE) SHARED(I,J)
  J=A(I)
!$OMP END PARALLEL
END SUBROUTINE


-- 
           Summary: OMP: missing error with default(none)
           Product: gcc
           Version: 4.4.5
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44536


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