subroutine test
      use omp_lib
      implicit none
      integer, parameter :: NT = 4
      integer :: a
      save
      a = 1
!$omp threadprivate(a)
end subroutine test

gfortran:
Error: Unexpected !$OMP THREADPRIVATE statement at (1)

Intel:
Error: A specification statement cannot appear in the executable section.

sunf95:
ERROR: Compiler directive THREADPRIVATE must appear before the first executable
statement.


-- 
           Summary: OpenMP: Better error message for specification statement
                    in executable section
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic, openmp
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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

Reply via email to